Task: Mathematics
Input (English): 6661 @ 1434 # 4772 # 3274 @ 3728 @ 3147 @ 8017 # 1069 @ 9909
Output (English): 23781