Task: Program Execution
Input (English): 5, ['p', '1131', '9081', '4477', '3235', 'W', 'w', '9887', 'P', 'w']
Output (English): p, W