Task: Program Execution
Input (English): 2, 2, ['G', 'S']
Output (English): S