PROGRAMMING:Display the number of times the number appears
Enter a positive decimal integer, converted to a hexadecimal number. Then enter a number (0,1,2,3,4,5,6,7,8,9, a, B, C, D, e, f) to count the number of occurrences.
###Input format:
Enter a positive decimal integer on one line.
On the other line, enter the number to be counted.
###Output format:
The number of occurrences of the number to be counted.
###Input sample 1:
Here is a set of inputs. For example:
```in
eighty-four million one hundred and seventeen thousand five hundred and twelve
eight
```
###Output sample 1:
The corresponding output is given here. For example:
```out
three
```
###Input sample 2:
Here is a set of inputs. For example:
```in
forty-six million eight hundred and eighty-three thousand three hundred and ten
e
```
###Output sample 2:
The corresponding output is given here. For example:
```out
two
```
answer:If there is no answer, please comment
```
n=int(input())
f=input()
s="{:0x}".format(n)
dic={}
for c in s:
dic[c]=dic.get(c,0)+1
print(dic.get(f,0))
```
###Input format:
Enter a positive decimal integer on one line.
On the other line, enter the number to be counted.
###Output format:
The number of occurrences of the number to be counted.
###Input sample 1:
Here is a set of inputs. For example:
```in
eighty-four million one hundred and seventeen thousand five hundred and twelve
eight
```
###Output sample 1:
The corresponding output is given here. For example:
```out
three
```
###Input sample 2:
Here is a set of inputs. For example:
```in
forty-six million eight hundred and eighty-three thousand three hundred and ten
e
```
###Output sample 2:
The corresponding output is given here. For example:
```out
two
```
answer:If there is no answer, please comment
```
n=int(input())
f=input()
s="{:0x}".format(n)
dic={}
for c in s:
dic[c]=dic.get(c,0)+1
print(dic.get(f,0))
```