Task: Program Execution
Input (English): 3, 8, ['N', '4781', '7347', 's', 'c', '4289', 'P', 'S', 'N', '9303', 'v', 'R', '1285', '4625', '7953', 'h']
Output (English): S, P, 4289, c, s, 7347