Task: Mathematics
Input (English): 8541 @ 3477 @ 1197 @ 5118 @ 2782 # 6701 # 7569 @ 4034 # 9783
Output (English): 1096