Task: Program Execution
Input (English): 5, 6, ['h', 'O', '3981', 'f', 'A', 'j', '1517', 'N', '4355', '5739', '3491', '7351', '7741']
Output (English): A, j