Task: Program Execution
Input (English): 5731, 4765, 8515, 5459
Output (English): -1