Task: Mathematics
Input (English): 4620 @ 1620 # 847 @ 6070 @ 7190 @ 9987 @ 2002
Output (English): 30642