Task: Mathematics
Input (English): 1636 # 2106 @ 5980 @ 7187 @ 5719
Output (English): 18416