Task: Mathematics
Input (English): 5414 @ 4107 @ 8015 @ 7231
Output (English): 24767