Task: Mathematics
Input (English): 1945 # 8691 # 4680 @ 8420 # 8210 @ 3341 # 2271 @ 1233 @ 9752
Output (English): 839