Task: Program Execution
Input (English): x, S
Output (English): 2