#include <vector> #include <algorithm> using namespace std; int main() { string s; vector<char> vowels = {'a','e','i','o','u','y'}; cin >> s; int count_letters = 0; //сколько букв одной гласности подряд int count = 0; // сколько букв добавить int state = -1; //для гласности int c = state; // для запоминания for(int i = 0 ;i < s.length(); i++, c = state) { if(find(vowels.begin(),vowels.end(),s[i])!= vowels.end()) state = 0; else state = 1; if(c==state) count_letters++; if(count_letters == 3) { count_letters = 1; //так как одна буква остается справа от разделяющей count++; } } cout << count; }