Problem3041--A. 刷排名

3041: A. 刷排名

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

小胡和小胖都是OI爱好者,暑假快到了,他们想比赛看谁刷题更多。比赛开始前,小胡已经做了 lns="http://www.w3.org/1998/Math/MathML">h 题,小胖做了 lns="http://www.w3.org/1998/Math/MathML">p 题。

小胡想着每天加把劲,应该就能获胜吧。小胡打算每天刷 lns="http://www.w3.org/1998/Math/MathML">a 题,而小胖每天会刷 lns="http://www.w3.org/1998/Math/MathML">b 题。请问,经过几天后,小胡的总做题量可以超越小胖。如果无法超越,请输出 Impossible

Input

输入第一行两个正整数,表示 lns="http://www.w3.org/1998/Math/MathML">h,p

输入第二行两个正整数:表示 lns="http://www.w3.org/1998/Math/MathML">a,b

Output

输出小胡的刷题量超越小胖所需的天数。

Sample Input Copy

5 9
4 2

Sample Output Copy

3

HINT

样例2输入:

15 10
3 3

样例2输出:

0

样例3输入:

15 20
2 2

样例3输出:

Impossible
说明:

【样例1解释】

lns="http://www.w3.org/1998/Math/MathML">2 天后,小胡做了 lns="http://www.w3.org/1998/Math/MathML">5 + 4 \times 2 = 13 题, 小胖做了 lns="http://www.w3.org/1998/Math/MathML">9 + 2 \times 2 = 13 题。

lns="http://www.w3.org/1998/Math/MathML">3 天后,小胡做了 lns="http://www.w3.org/1998/Math/MathML">5 + 4 \times 3 = 17 题, 小胖做了 lns="http://www.w3.org/1998/Math/MathML">9 + 2 \times 3 = 15 题。小胡超越了小胖。

【样例2解释】

小胡的做题量开始时已经超过小胖,所以需要 lns="http://www.w3.org/1998/Math/MathML">0 天。

【数据说明】

lns="http://www.w3.org/1998/Math/MathML">1 \leq h,p \leq 1000

lns="http://www.w3.org/1998/Math/MathML">1 \leq a,b \leq 10


Source/Category