Task: Program Execution
Input (English): 1987, 4151, 353, 9165, 6693
Output (English): -1