Task: Program Execution
Input (English): 2, 11, ['S', 'h', '1309', 'A', 'h', 'N', '789', 'O', '4877', 'F', '3091']
Output (English): 3091, F, 4877, O, 789, N, h, A, 1309, h