To solve this, we need to follow the order of operations (PEMDAS/BODMAS): Parentheses/Brackets, Exponents/Orders, Multiplication and Division (from left to right), Addition and Subtraction (from left to right).
\[ 18 \div 2 = 9 \]
\[ 39 + 9 - 40 + 38 + 53 \]
\[ 39 + 9 = 48 \]
\[ 48 - 40 = 8 \]
\[ 8 + 38 = 46 \]
\[ 46 + 53 = 99 \]
Ответ: 99