Task: Program Execution
Input (English): r, o, g, X, 3371, O, 6977, 5405, 389, M, 499, a, x
Output (English): 3371, 6977, 5405, 389, 499