Task: Program Execution
Input (English): 2, 4, ['1733', 'P', 'U', 'L', 'I', 'W', '361', '1727', '3475', 'Q', 'K']
Output (English): P, W, Q