Task: Program Execution
Input (English): 3, 6, ['O', 'N', '3553', '9613', 'M', 'R', 'X', 's', '7201', '6665', '3513', 'D', '2499', '3673', '5123', '3413', '3541', '9617', 'O']
Output (English): 3553, 7201, 5123