Task: Program Execution
Input (English): 1905, 1685, 5479, 539, 8175, 6843, 8141
Output (English): -1