Run id: 116283

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