In Izua Village, there is a shopping street along the east-west road. Yae lives at the west end of the shopping street and Takeko lives at the east end. They are trying to walk from their house to Joe's store along the street. However, since Yae and Takeko are still small, they can't walk very far from their house.
Given the length of the shopping street, the maximum distance they can walk, and the distance along the street from the west end of the shopping street to Joe's store, write a program to calculate if Yae and Takeko can walk to the store. Note that the maximum distance they can walk is the same for both of them.
The input is given in the following form.
$w$ $m$ $s$
In one line, the length of the shopping street $w$ ($2 \leq w \leq 1,000$), the maximum distance they can walk $m$ ($0 \leq m \leq 500$), and the distance along the street from the west end of the shopping street to Joe's store $s$ ($0 < s < w$) are given as integers.
Output 0 when neither of them can reach the destination, 1 when only Yae can reach the destination, 2 when only Takeko can reach the destination, and 3 when both of them can reach the destination on a single line.
200 50 30
1
300 100 200
2
500 300 300
3
1000 400 450
0