Task: Program Execution
Input (English): q, x, G, J, 9221
Output (English): 1, 2, 3, 4