Task: Program Execution
Input (English): 1561, Z, G
Output (English): 1561