Task: Mathematics
Input (English): 2007 # 4472 @ 6782 @ 408
Output (English): 4725