Task: Program Execution
Input (English): 3, 7, ['V', '5401', '4383', 'W', 'A', 'W', 'p', '1951', 'u', 'H']
Output (English): p, W, A, W, 4383