Task: Program Execution
Input (English): 2, 10, ['3797', 'X', 'M', 't', '1037', 'z', 'Y', 'w', '1291', '4667', 'j']
Output (English): X, M, t, 1037, z, Y, w, 1291, 4667