Task: Program Execution
Input (English): 2, 3, ['S', 'S', 'a', 'H', 'p']
Output (English): a, S