Task: Mathematics
Input (English): 4104 # 658 @ 2977 @ 8962 @ 4165 @ 5503 @ 6932
Output (English): 31985