Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/for/count-of-multiples-of-three

Count of multiples of three

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 64 MB 22%
Share

Two integers and are given. Find how many integers from to (both inclusive) are divisible by . is also divisible by .

The segment from a to b on the number line; multiples of three are highlighted

Input

One line with two integers: and .

Output

One integer — the number of multiples of three.

Note

Examples

Input #1
1 10
Output #1
3
Input #2
-7 7
Output #2
5

Sign in to submit a solution

Signing up is free and takes a minute.