Task: Program Execution
Input (English): 3555, N, 995, 3881, 3603, 7783
Output (English): 19817