Task: Program Execution
Input (English): 8531, G, I, 9245, p, 4539, 6705, I, 7211, Q
Output (English): 1, 4, 6, 7, 9