eolymp
bolt
Try our new interface for solving problems
Problems

The number of specified digits

The number of specified digits

Time limit 1 second
Memory limit 128 MiB

Count the number of digits a in number n.

Input data

The first line contains one 32-bit integer number n. Number n can be negative. The second line contains a single digit a.

Output data

Print the number of digits a in number n.

Examples

Input example #1
25557
5
Output example #1
3
Input example #2
100
0
Output example #2
2