Task: Program Execution
Input (English): 5, 7, ['P', '727', 'h', '9705', 'P', 'B', 'n']
Output (English): P, B, n