count-divisors
Source: hackerearth
Difficulty: EASY

You have been given 3 integers l, r and k. Find how many numbers between l and r (both inclusive) are divisible by k. You do not need to print these numbers, you just have to find their count.  

Input Format
The first and only line of input contains 3 space separated integers l, r and k. 

Output Format
Print the required answer on a single line.  

Constraints
 1 ≤ l ≤ r ≤ 1000  
 1 ≤ k ≤ 1000     

SAMPLE INPUT
1 10 1

SAMPLE OUTPUT
10


'''
# 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!'
'''

count=0
str=input()
str=str.split(' ')
start = int(str[0])
end=int(str[1])
div=int(str[2])

i=start
while i<=end:
	if i%div == 0:
		count+=1
	i += 1
print(count)


arr=input().split(' ')
n_arr=[int(num) for num in arr]
count=0
for i in range(n_arr[0],n_arr[1]+1):
	if i%n_arr[2]==0:
		count=count+1
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=input().split(" ")
l=int(L[0])
r=int(L[1])
k=int(L[2])

if k<=l:
	rem=l%k
	count =0
	value=l+rem
	while value<=r:
		count+=1
		value+=k
	print(count)
elif k>l and k<=r:
	count=0
	value=k
	while value<=r:
		count+=1
		value+=k
	print(count)
	
else:
	print(0)
		


l, r, k = input().split()
l=int(l)
r=int(r)
k=int(k)
count=0
for i in range(l,r+1):
	if(i%k==0):
		count =count+1
print(count)


l,r,k=list(map(int,input().split()))

count=0;r=r+1;
for i in range(l,r,1):
	if i%k == 0:
		count=count+1
print(count)



a=input()
b=a.split()
l=int(b[0])
r=int(b[1])
k=int(b[2])
c=0
for i in range(l,r+1):
	if i%k==0:
		 c=c+1
print(c)
	 


'''
# Read input from stdin and provide input before running code
'''
in_data = input()
data = list(map(int, in_data.split(" ")))
k = data[-1]
count=0
for r in range(data[0],data[1]+1):
	if r%k==0:
		count+=1
print(count)



'''
# Read input from stdin and provide input before running code
'''
in_data = input()
data = list(map(int, in_data.split(" ")))
k = data[-1]
count=0
for r in range(data[0],data[1]+1):
	if r%k==0:
		count+=1
print(count)



l,r,k = input().split()
c = 0
l = int(l)
r = int(r)
k = int(k)
while l <= r :
	if l % k == 0 :
		c = c + 1
	l = l + 1
print(c)


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

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
l,r,k=list(map(int,input().split()))
count=0
for i in range(l,r+1):
	if i%k==0:
		count+=1
print(count)


l,r,k=list(map(int,input().split()))

count=0;r=r+1;
for i in range(l,r,1):
	if i%k == 0:
		count=count+1
print(count)



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

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
l, r, k = list(map( int, input().split()))
print(len([x for x in range(l,r+1) if x%k==0]))


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

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''

inputString = input()
array = inputString.split()
l,r,k = int(array[0]),int(array[1]),int(array[2])
count  = 0
for i in range(l,r+1):
	if i % k == 0:
		count += 1
print(count)



l=list(map(int,input().split()))
if 1<=l[0]<=l[1]<=1000 and 1<=l[2]<=1000:
	if l[1]-l[0]==0:
	    print(0)
	else:
	    print(((l[1]-l[0])/l[2])+1)




l,r,k=list(map(int,input().split()))

count=0;r=r+1;
for i in range(l,r,1):
	if i%k == 0:
		count=count+1
print(count)



int_array = []
count = 0
int_array = list(map(int,input().split()))
if len(int_array) == 3:
	for i in range(int_array[0], (int_array[1]+1)):        
		if (i%int_array[2])== 0:
			count = count + 1

print(count)           
	
		


l, r, k = list(map(int, input().split()))
print(((r+k-l)/k) if l<r else 0)


a=list(map(int,input().split()))
l,r,k=a[0],a[1],a[2]
count=0
for i in range(l,r+1):
	if i%k==0:
		count+=1
print(count)        


arr=input().split()
c=0
for i in range(int(arr[0]),int(arr[1])+1):
	if i%int(arr[2])==0:
		c=c+1
print(c)


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

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
l, r, k = [int(x) for x in input().split(" ")]
count = 0

for i in range(l, r+1):
	if i%k == 0:
		count += 1

print(count)


count=0
list=list(map(int,input().split()))
for i in range(list[0],list[1]+1):
	if i%list[2]==0:
		count+=1
print(count)


lrk = input()
lrk = [int(i) for i in lrk.split(' ')]
divs = 0
firstMul = 0
if lrk[0] % lrk[2] == 0:
	firstMul = lrk[0] / lrk[2]
else:
	firstMul = lrk[0] / lrk[2] + 1
# print 'firstMul'
# print firstMul
totalNum = lrk[1] - (lrk[2] * firstMul) 
# print 'totalNum'
# print totalNum
divs = totalNum / lrk[2] + 1
print(divs)


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

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
s = input()
c = 0
s1 = s.split(' ')
for i in range(int(s1[0]),int(s1[1])+1):
	if i%int(s1[2]) == 0:
		c = c + 1
print(c)


sam=list(map(int,input().split()))
count=0
while (sam[0]<=sam[1]):
	if (sam[0]%sam[2]==0):
		count=count+1
		sam[0]=sam[0]+1
	else:
		sam[0]=sam[0]+1

print(count)