Task: Program Execution
Input (English): r, 985, 5837, 981, X, 2033, X, 6571, G, 297
Output (English): 1, 5, 7, 9