Task: Mathematics
Input (English): 1117 @ 4216 @ 3145 @ 2478 # 2964 # 3002
Output (English): 4990