#include <stdio.h>
#include <ctype.h>
void count_chars(const char *s, int *letter, int *digit, int *space, int *other) {
*letter = 0;
*digit = 0;
*space = 0;
*other = 0;
while (*s != '\0') {
(*letter)++;
(*digit)++;
(*space)++;
} else {
(*other)++;
}
s++;
}
}
int main() {
char s[100];
int letter, digit, space, other;
count_chars(s, &letter, &digit, &space, &other);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxjdHlwZS5oPiAKCnZvaWQgY291bnRfY2hhcnMoY29uc3QgY2hhciAqcywgaW50ICpsZXR0ZXIsIGludCAqZGlnaXQsIGludCAqc3BhY2UsIGludCAqb3RoZXIpIHsKICAgICpsZXR0ZXIgPSAwOwogICAgKmRpZ2l0ID0gMDsKICAgICpzcGFjZSA9IDA7CiAgICAqb3RoZXIgPSAwOwogICAgd2hpbGUgKCpzICE9ICdcMCcpIHsKICAgICAgICBpZiAoaXNhbHBoYSgqcykpIHsKICAgICAgICAgICAgKCpsZXR0ZXIpKys7CiAgICAgICAgfSBlbHNlIGlmIChpc2RpZ2l0KCpzKSkgewogICAgICAgICAgICAoKmRpZ2l0KSsrOwogICAgICAgIH0gZWxzZSBpZiAoaXNzcGFjZSgqcykpIHsgCiAgICAgICAgICAgICgqc3BhY2UpKys7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgKCpvdGhlcikrKzsKICAgICAgICB9CiAgICAgICAgcysrOwogICAgfQp9CgppbnQgbWFpbigpIHsKICAgIGNoYXIgc1sxMDBdOwogICAgcHJpbnRmKCLor7fovpPlhaXlrZfnrKbkuLLvvJoiKTsKICAgIGdldGNoYXIoKTsgCiAgICBnZXRzKHMpOyAgIAogICAgCiAgICBpbnQgbGV0dGVyLCBkaWdpdCwgc3BhY2UsIG90aGVyOwogICAgY291bnRfY2hhcnMocywgJmxldHRlciwgJmRpZ2l0LCAmc3BhY2UsICZvdGhlcik7CiAgICAKICAgIHByaW50Zigi5a2X5q+N5Liq5pWw77yaJWRcbiIsIGxldHRlcik7CiAgICBwcmludGYoIuaVsOWtl+S4quaVsO+8miVkXG4iLCBkaWdpdCk7CiAgICBwcmludGYoIuepuuagvOS4quaVsO+8miVkXG4iLCBzcGFjZSk7CiAgICBwcmludGYoIuWFtuS7luWtl+espuS4quaVsO+8miVkXG4iLCBvdGhlcik7CiAgICAKICAgIHJldHVybiAwOwp9