Score : 100 points
Find the number of integers between 1 and K (inclusive) satisfying the following condition, modulo 10^9 + 7:
Input is given from Standard Input in the following format:
K D
Print the number of integers satisfying the condition, modulo 10^9 + 7.
30 4
6
Those six integers are: 4, 8, 13, 17, 22 and 26.
1000000009 1
2
Be sure to print the number modulo 10^9 + 7.
98765432109876543210 58
635270834