#include <stdio.h>
int main() {
int contaDigitos = 0, a, b;
while (b != 0) {
if (b % 10 == a) contaDigitos++;
b /= 10;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBjb250YURpZ2l0b3MgPSAwLCBhLCBiOwogICAgc2NhbmYoIiVkICVkIiwgJmEsICZiKTsKICAgIHdoaWxlIChiICE9IDApIHsKICAgICAgICBpZiAoYiAlIDEwID09IGEpIGNvbnRhRGlnaXRvcysrOwogICAgICAgIGIgLz0gMTA7CiAgICB9CiAgICBwcmludGYoIiVkXG4iLCBjb250YURpZ2l0b3MpOwogICAgcmV0dXJuIDA7CiB9