Run id: 116282

------Input------
51 3 94 38
------Answer-----
the next triple peak occurs in 749 days.
------Your output-----
13