Task: Mathematics
Input (English): 1795 @ 5433 @ 8822 @ 4727
Output (English): 20777