#RELAY2A. Kaiden

Kaiden

Score : 100100 points

Problem Statement

ButCoder Inc. runs a programming competition site called ButCoder. In this site, a user is given an integer value called rating that represents his/her skill, which changes each time he/she participates in a contest. The initial value of a new user's rating is 00, and a user whose rating reaches KK or higher is called Kaiden ("total transmission"). Note that a user's rating may become negative.

Hikuhashi is a new user in ButCoder. It is estimated that, his rating increases by AA in each of his odd-numbered contests (first, third, fifth, ...), and decreases by BB in each of his even-numbered contests (second, fourth, sixth, ...).

According to this estimate, after how many contests will he become Kaiden for the first time, or will he never become Kaiden?

Constraints

  • 1K,A,B10181 \leq K, A, B \leq 10^{18}
  • All input values are integers.

Input

Input is given from Standard Input in the following format:

KK AA BB

Output

If it is estimated that Hikuhashi will never become Kaiden, print -1. Otherwise, print the estimated number of contests before he become Kaiden for the first time.

4000 2000 500
5

Each time Hikuhashi participates in a contest, his rating is estimated to change as 002000200015001500350035003000300050005000\cdots After his fifth contest, his rating will reach 40004000 or higher for the first time.

4000 500 2000
-1

Each time Hikuhashi participates in a contest, his rating is estimated to change as 005005001500-15001000-10003000-30002500-2500\cdots He will never become Kaiden.

1000000000000000000 2 1
1999999999999999997

The input and output values may not fit into 3232-bit integers.