Task: Mathematics
Input (English): 2935 @ 1467 @ 5772 @ 8207 @ 3148 @ 5629 # 4340 # 3089
Output (English): 19729