Task: Program Execution
Input (English): 29, N, 5061, 7191, z, 8367
Output (English): 20648