Killjee has songs in his player. Initial volume of his player is and highest volume Killjee can hear is , After playing song killjee can increase the volume of player by .
Can you tell killjee what maximum volume he can achieve without hurting his ears.
INPUT
First line of input contains 3 space separated integer , , . Second line contains space separated integers of which is .
OUTPUT
Print highest volume that can be achieved.
CONSTRAINTS
we can't increase volume in any step.