#1553. 有几个 x

有几个 x

Description

给定一个数字 nn,求它的各个数位上一共存在几个 xx

Format

Input

第一行输入两个空格隔开的整数 n,xn, x

Output

输出一个整数代表答案

Samples

333 3
3
123 2
1

Limitation

1n1018,0x91\leq n\leq 10^{18},0\leq x\leq 9