Task: Mathematics
Input (English): 2049 @ 1852 @ 5837 @ 7993
Output (English): 17731