PROGRAMMING:The number of numbers divisible by 3,5 and 7 (realized by set)
Find the number of numbers divisible by 3, 5 and 7 in the specified interval
###Input format:
Enter 2 positive integers a and B (1 < = a < B < = 10000000) from the keyboard in one line, separated by spaces.
###Output format:
The number of numbers that can be divisible by 3, 5 and 7 that are greater than or equal to a and less than or equal to B in one line.
###Input sample 1:
Here is a set of inputs. For example:
```in
10 100
```
###Output sample 1:
The corresponding output is given here. For example:
```out
0
```
###Input sample 2:
Here is a set of inputs. For example:
```in
1000 100000
```
###Output example:
The corresponding output is given here. For example:
```out
nine hundred and forty-three
```
answer:If there is no answer, please comment
```
"""
Find the number of numbers divisible by 3, 5 and 7 in the specified interval
Input 2 positive integers a and B from the keyboard (1 < = a < B < = 10000000),
Output the number of numbers that can be divisible by 3, 5 or 7 that are greater than or equal to a and less than or equal to B.
"""
a,b=input().split()
a,b=int(a),int(b)
s1=set([i for i in range(a,b+1) if i%3==0])
s2=set([i for i in range(a,b+1) if i%5==0])
s3=set([i for i in range(a,b+1) if i%7==0])
print(len(s1&s2&s3))
```
###Input format:
Enter 2 positive integers a and B (1 < = a < B < = 10000000) from the keyboard in one line, separated by spaces.
###Output format:
The number of numbers that can be divisible by 3, 5 and 7 that are greater than or equal to a and less than or equal to B in one line.
###Input sample 1:
Here is a set of inputs. For example:
```in
10 100
```
###Output sample 1:
The corresponding output is given here. For example:
```out
0
```
###Input sample 2:
Here is a set of inputs. For example:
```in
1000 100000
```
###Output example:
The corresponding output is given here. For example:
```out
nine hundred and forty-three
```
answer:If there is no answer, please comment
```
"""
Find the number of numbers divisible by 3, 5 and 7 in the specified interval
Input 2 positive integers a and B from the keyboard (1 < = a < B < = 10000000),
Output the number of numbers that can be divisible by 3, 5 or 7 that are greater than or equal to a and less than or equal to B.
"""
a,b=input().split()
a,b=int(a),int(b)
s1=set([i for i in range(a,b+1) if i%3==0])
s2=set([i for i in range(a,b+1) if i%5==0])
s3=set([i for i in range(a,b+1) if i%7==0])
print(len(s1&s2&s3))
```