Task: Program Execution
Input (English): 573, 3745, 3927, 3147
Output (English): -1