Task: Mathematics
Input (English): 1498 @ 1586 # 1377 @ 4687 @ 5342 @ 3558 # 3017
Output (English): 12277