Task: Program Execution
Input (English): 4, 7, ['5797', '8027', 'h', '527', 'A', 'R', '6847', 'x', '1437', '6877', 'r']
Output (English): 527, A, R, 6847