Task: Mathematics
Input (English): 2787 @ 3800 # 142 # 7750 # 8581 @ 5447 @ 1512 @ 6550
Output (English): 3623