Task: Program Execution
Input (English): 1361, n, 7359
Output (English): 8720