Task: Program Execution
Input (English): 3, 4, ['8435', '6469', 'Q', '3341', 'M', 'R', '6555', 'P', 'R', 'o', 'p', '173', '5781', 'c', '417', 'M', '1179']
Output (English): Q, 6555, p, 417