Task: Program Execution
Input (English): YXsgPE, ENsgSO
Output (English): sg