Task: Program Execution
Input (English): 1, 1, ['S', 'X', 'p']
Output (English): S, X, p