Task: Mathematics
Input (English): 8377 # 8670 @ 4992 @ 8840 @ 7900 # 1998 @ 9636
Output (English): 29077