Task: Program Execution
Input (English): 3405, 5757, 8747, 4351
Output (English): -1