Task: Program Execution
Input (English): z, 6797, 2847
Output (English): 9644