Task: Mathematics
Input (English): 2974 @ 9943 @ 2956 @ 4804 @ 3230
Output (English): 23907