Tìm các số chia hết cho 3 trong đoạn a, b

View as PDF



Time limit:
Scratch 5.0s
Memory limit:
Scratch 256M

Author:
Problem types
Points: 800 Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Cho hai số tự nhiên \(a\)\(b\). Hãy đếm xem từ \(a\) đến \(b\) có bao nhiêu số chia hết cho 3.

Input

  • Hai số tự nhiên, mỗi số trên mỗi dòng \(a\)\(b\).

Output

  • Một số là kết quả của bài toán.

Example

Test 1

Input
4 
10
Output
2

Comments (23)

Order by
Loading comments...