Task: Program Execution
Input (English): n, 1529, X, 6989, 2069, I
Output (English): 10587