Task: Program Execution
Input (English): 4, ['1225', 'p', '3757', 'q', '5', '3151', 'G', '3705']
Output (English): 5, 3151, G, 3705