Task: Program Execution
Input (English): z, q, 241
Output (English): 1, 2, 4