Task: Mathematics
Input (English): 3475 # 1958 @ 8678 @ 1743 @ 5889
Output (English): 17827