Task: Program Execution
Input (English): 4, 6, ['M', '5051', '8817', '1579', 'N', '5359', '7743', 'u', '3729']
Output (English): 1579, N, 5359