Task: Mathematics
Input (English): 310 # 4741 @ 2069 @ 2831 @ 5351
Output (English): 5820