Task: Program Execution
Input (English): 5, 6, ['9565', 'Z', 'U', '5067', 'Q', 'G', '1301', 'z', 'n', 'r', '6195', 'y', 'n', 'A', '1711', 'N']
Output (English): G, Q