Task: Mathematics
Input (English): 3166 # 5414 @ 1613 @ 7287 @ 2179 # 4577
Output (English): 4254