Task: Program Execution
Input (English): 4, 3, ['Q', '2863', '9269', 'x', 'P', '1973', '5211', 'H', '9909', '5479', 'w', 'f', '6565', 'z', 'a', '9395', 'q', '4335', 'w', 'y']
Output (English): x, 5211, 5479, 6565, 9395, w