Task: Program Execution
Input (English): 2, 5, ['E', 'p', 'Q', '6095', 'G', 'p']
Output (English): G, 6095, Q, p