weird-friends

Hansa loves dancing and so do her friends. But she has some pretty weird friends. Like this one friend of hers, Jack, jumps forward while dancing. The dance floor is of finite length (L) and there are many people dancing on it. During each song, Jack jumps exactly X steps forward and at the end of the song, he is pushed back Y steps by the other dancers. 

Every class has a nerd. This one does too. The nerd doesn’t like dancing but in order to kill time he is watching this jumping Jack. He is counting the number of songs that have been played before Jack reaches the end of the dance floor. Tell us how many songs he counted.

Note: Even if a song doesn’t complete when he reaches the end of the dance floor, but it has started, then it is counted.

Input:
Three space separated integers L, X, Y.

Output:
A single line of output that is the answer to the question.

Constraints:
1 ≤ Y < X ≤ L ≤ 10^9

Problem Setter: Chintan Shah

SAMPLE INPUT
6 5 1

SAMPLE OUTPUT
2

Source: hackerearth | Difficulty: UNKNOWN_DIFFICULTY


Solutions:
s=input().split()
s1=int(s[0])
s2=int(s[1])
s3=int(s[2])
c=0
cpy=s2
if s1>=s2 and s1<=pow(10,9) and s2>s3 and s2<=s1 and s3>=1 and s3<s2:
	while(s1>(s2)):
		c+=1
		s2-=s3
		s2+=cpy
	if s2==s1:
		print(c)
	else:
		print((c+1))



n,m,k=list(map(int,input().split()))
n=int(n)
m=int(m)
k=int(k)
ans=(n-m)/(m-k)
rem=n%(m-k)
if rem!=0:
	ans=ans+1
print(ans+1)


import re

def validate(l,f,b):
	if ( b >= 1 and b <= 1000000000 ):
	  if ( f > b and f <= 1000000000 ):
		  if ( l >= b and l <= 1000000000 ):
				return True
	return False

def main():
	input = input()
	list = []
	list = re.split('\s+', input)
	try:
	  length = list[0]
	  length = int(length)
	  steps_f = list[1]
	  steps_f = int(steps_f)
	  steps_b = list[2]
	  steps_b = int(steps_b)
	except:
	  pass

	if (validate(length, steps_f, steps_b)):
		x = 0
		songs = 1
		while ( (x + steps_f) <= length ) :
		  x = x + steps_f - steps_b
		  songs += 1

		print(songs)


if __name__ == '__main__':
	main()



l,x,y=list(map(int,input().split()))
c=0
number=0
while c<l:
	number += 1
	c = c + x
	if c>=l:
		break;
	c = c -y
	#number +=1
print(number)


l,x,y=list(map(int,input().split()))
c=1
i=0
i+=x
while i<l:
	c+=1
	i+=x
	i-=y
print(c)


l, x, y = list(map(int, input().strip().split()))

song_begin = 0
count = 0
curr_pos = 0
while(song_begin < l):
	curr_pos = song_begin + x
	song_begin += x - y
	count += 1
	
	#print curr_pos, count, song_begin
	if curr_pos >= l:
		break
	
	

print(count)
	


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
#print 'Hello World!'
l,x,y=list(map(int,input().split()))
c=1
k=x
while k<l:
	c+=1
	k+=x
	k-=y
print(c)