Task: Program Execution
Input (English): 1409, R, 5015, Z
Output (English): 6424