Task: Program Execution
Input (English): 2, 3, ['3861', 'P', 'Z', '4131', 'R', '1763', 'b', 'S', '3745', 'l', 'A', 'a', 'w', '2635', '2637', 'j', '4107']
Output (English): ZP