Task: Program Execution
Input (English): 4, 11, ['3515', '3995', '4319', 'A', '1449', '9235', '2137', '6925', 'P', '4071', '7813', '7273', '2063', '2813', '7819', '5509', '503']
Output (English): 7813, 4071, P, 6925, 2137, 9235, 1449, A