Task: Mathematics
Input (English): 6904 # 1007 @ 9690 @ 9967 @ 9620 @ 4765
Output (English): 39939