Competitions

# АСМ for students of Georgian Technical University

# The smallest unimaginable

For a givenset consisting ofpositive integers, determine thesmallest positive number,unimaginableas the sum ofthe elementsof anysubsetof theset.

**Input**

The input filecontainsall the numbersthat make upa given set.Each of themdoes not exceed**10 ^{15}**, the totalamountdoes not exceed

**10000**,and their sumis guaranteed tonot exceed

**2**.

^{64}-1**Output**

In the outputfileto bringa single number- the answerof the problem.

Input example #1

1 7 2 5 423456

Output example #1

4