Run id: 94559

------Input------
8 74 34 87 21 47 95 59 99
------Answer-----
21
------Your output-----
1000