#include <stdio.h>
#include <ctype.h>
int main() {
char str[100];
int vowels = 0, consonants = 0, digits = 0, specials = 0;
for (int i = 0; str[i] != '\0'; i++) {
if (str[i] == 'a' || str[i] == 'e' || str[i] == 'i' || str[i] == 'o' || str[i] == 'u' ||
str[i] == 'A' || str[i] == 'E' || str[i] == 'I' || str[i] == 'O' || str[i] == 'U') {
vowels++;
} else {
consonants++;
}
digits++;
} else if (str[i] != ' ' && str[i] != '\n') {
specials++;
}
}
printf("Vowels: %d, Consonants: %d, Digits: %d, Special symbols: %d\n", vowels
, consonants
, digits
, specials
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxjdHlwZS5oPgppbnQgbWFpbigpIHsKICAgIGNoYXIgc3RyWzEwMF07CiAgICBpbnQgdm93ZWxzID0gMCwgY29uc29uYW50cyA9IDAsIGRpZ2l0cyA9IDAsIHNwZWNpYWxzID0gMDsKICAgIGZnZXRzKHN0ciwgMTAwLCBzdGRpbik7CiAgICBmb3IgKGludCBpID0gMDsgc3RyW2ldICE9ICdcMCc7IGkrKykgewogICAgICAgIGlmIChpc2FscGhhKHN0cltpXSkpIHsKICAgICAgICAgICAgaWYgKHN0cltpXSA9PSAnYScgfHwgc3RyW2ldID09ICdlJyB8fCBzdHJbaV0gPT0gJ2knIHx8IHN0cltpXSA9PSAnbycgfHwgc3RyW2ldID09ICd1JyB8fCAKICAgICAgICAgICAgICAgIHN0cltpXSA9PSAnQScgfHwgc3RyW2ldID09ICdFJyB8fCBzdHJbaV0gPT0gJ0knIHx8IHN0cltpXSA9PSAnTycgfHwgc3RyW2ldID09ICdVJykgewogICAgICAgICAgICAgICAgdm93ZWxzKys7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICBjb25zb25hbnRzKys7CiAgICAgICAgICAgIH0KICAgICAgICB9IGVsc2UgaWYgKGlzZGlnaXQoc3RyW2ldKSkgewogICAgICAgICAgICBkaWdpdHMrKzsKICAgICAgICB9IGVsc2UgaWYgKHN0cltpXSAhPSAnICcgJiYgc3RyW2ldICE9ICdcbicpIHsKICAgICAgICAgICAgc3BlY2lhbHMrKzsKICAgICAgICB9CiAgICB9CiAgICBwcmludGYoIlZvd2VsczogJWQsIENvbnNvbmFudHM6ICVkLCBEaWdpdHM6ICVkLCBTcGVjaWFsIHN5bWJvbHM6ICVkXG4iLCB2b3dlbHMsIGNvbnNvbmFudHMsIGRpZ2l0cywgc3BlY2lhbHMpOwogICAgcmV0dXJuIDA7Cn0K