Task: Program Execution
Input (English): O, 5061, 9805, 9853, 5549, G, G, 3177
Output (English): O, G, G