Task: Program Execution
Input (English): o, 7699, 309, 9027, 509, 517, 7531, 5933, G, Z
Output (English): o, G, Z