Task: Program Execution
Input (English): 3, 8, ['P', '4623', 'K', 'q', '8137', '8243', '721', '3211', 'E', '397', 'J', 'j', '3493', 'T']
Output (English): Kq813782437213211