Task: Program Execution
Input (English): 3, 10, ['o', '1157', 'Q', 'e', 'q', 't', 'P', '2801', 'J', 'e', 'U', '6289', 'a', '8341', 'k', '2691', '1749', '4119', '2401', '1201', 'Y', '9179', 'Z']
Output (English): Q, a, Z