Task: Program Execution
Input (English): 3, 3, ['223', 'x', 'S']
Output (English): S