Task: Mathematics
Input (English): 541 @ 8091 @ 8984 @ 2491
Output (English): 20107