Task: Program Execution
Input (English): 3, 4, ['h', 'w', 'p', 'f', 'R']
Output (English): f, p