Task: Program Execution
Input (English): 4, 5, ['N', 'F', 'Q', 'a', 'q']
Output (English): a, q