#include <stdio.h>
#include <string.h>
int
main()
{
char s[31], *t[] = {"小文字", "大文字", "数字"};
int i, r[3] = {0, 0, 0};
while (i--) {
r[0] += ('a' <= s[i]) && (s[i] <= 'z');
r[1] += ('A' <= s[i]) && (s[i] <= 'Z');
r[2] += ('0' <= s[i]) && (s[i] <= '9');
}
for (i = 0; i < 3; i++)
printf("%sは%d文字,", t
[i
], r
[i
]);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludAptYWluKCkKewogIGNoYXIgICAgICAgICAgICBzWzMxXSwgKnRbXSA9IHsi5bCP5paH5a2XIiwgIuWkp+aWh+WtlyIsICLmlbDlrZcifTsKICBpbnQgICAgICAgICAgICAgaSwgclszXSA9IHswLCAwLCAwfTsKCiAgcHJpbnRmKCLmloflrZfliJfjgpLlhaXlipvjgZfjgabkuIvjgZXjgYQuIik7CiAgc2NhbmYoIiVzIiwgcyk7CiAgaSA9IHN0cmxlbihzKTsKICB3aGlsZSAoaS0tKSB7CiAgICByWzBdICs9ICgnYScgPD0gc1tpXSkgJiYgKHNbaV0gPD0gJ3onKTsKICAgIHJbMV0gKz0gKCdBJyA8PSBzW2ldKSAmJiAoc1tpXSA8PSAnWicpOwogICAgclsyXSArPSAoJzAnIDw9IHNbaV0pICYmIChzW2ldIDw9ICc5Jyk7CiAgfQogIGZvciAoaSA9IDA7IGkgPCAzOyBpKyspCiAgICBwcmludGYoIiVz44GvJWTmloflrZcsIiwgdFtpXSwgcltpXSk7CiAgcHV0cygi44Gn44GZLlxuIik7CgogIHJldHVybiAwOwp9