Task: Program Execution
Input (English): n, 1117, x
Output (English): 1117