Task: Program Execution
Input (English): 4, 10, ['m', 'a', '2873', 't', 'A', 'K', '5729', 'Y', 'p', '3283', '1179', '6819']
Output (English): t, A, K, 5729, Y, p, 3283