Task: Program Execution
Input (English): 5, 10, ['D', 'G', '187', '1977', 't', '4397', '1091', '9253', '3527', 'j', 'X', 'e', '8527', 'm', '7621', '7853', '8331', '8193', '3031', 'O']
Output (English): j, 3527, 9253, 1091, 4397, t