Task: Program Execution
Input (English): 495, h, v, y, 31, q, 121, 149
Output (English): 1, 2, 3, 4, 5, 9