Task: Program Execution
Input (English): 4, ['5439', '3527', 'a', '8593', 'G', '5839', '8683', '7845', 'G']
Output (English): 5439, G, G