1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <bits/stdc++.h>

using namespace std;

int main()
{
	ios_base::sync_with_stdio(false);
	char x;
	long long sa=0, i=0, n=0, os=0, wyn=0;
	while(cin >> x)
	{
		if (x=='a' || x=='o' || x=='e' || x=='i' || x=='y' || x=='u')
		if (sa==0) i++;
		else {sa=0; i=1;}
		else if (sa==1) i++;
		else {sa=1; i=1;}
		if (i>=3) os=n-1;
		wyn+=os;
		n++;
	} 
	cout << wyn << endl;
}