Task: Program Execution
Input (English): 279, U, 879, S
Output (English): 1158