Kangho applied to a coding-education startup, and today is his interview day. But he overslept and arrived late at the building where the company is located.
The company occupies a tall building with $F$ floors in total, and its office is on floor $G$. Kangho is currently on floor $S$ and wants to take the elevator to floor $G$.
A normal elevator has a button for every floor, but the elevator Kangho boarded has only two buttons.
If going up by $U$ floors would rise above the top floor ($F$), or going down by $D$ floors would drop below floor $1$, the elevator does not move.
Find the minimum number of button presses Kangho needs to reach floor $G$. If he cannot reach floor $G$ using only the elevator, print use the stairs.
The first line contains five integers $F$, $S$, $G$, $U$, and $D$, separated by spaces. ($1 \le S, G \le F \le 10^6$, $0 \le U, D \le 10^6$)
The building starts at floor $1$, and the highest floor is $F$.
Print the minimum number of button presses needed to go from floor $S$ to floor $G$. If the elevator cannot reach floor $G$, print use the stairs.