Task: Program Execution
Input (English): w, 297, w, z
Output (English): 2, 7, 9