Task: Mathematics
Input (English): 512 # 4736 @ 5027 @ 1408 @ 8939 @ 496
Output (English): 11646