Problem GB: 数量问题

Problem GB: 数量问题

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

SubmitProblemList

Description

试计算在区间 1到 n的所有整数中,数字k共出现了多少次?例如,在1到11中,即在 1,2,3,4,5,6,7,8,9,10,11 中,数字1出现了 4 次。

Input

2个整数n,k,

Output

1个整数,表示 k 出现的次数。

Sample Input Copy

11
1

Sample Output Copy

4