Task: Program Execution
Input (English): 10, 12, ['4805', '3077', '815', '1585', '1049', '2731', '6585', 'E', '6831', '6567', '7395', 'G', 'o']
Output (English): G, 7395, 6567