1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdio.h>
typedef long long ll;
const int C=200001;

ll n, wynn=0, i=0, j=0;
char k[C];
int s[300];

int main(){
	s[97]=1, s[101]=1, s[105]=1, s[111]=1, s[117]=1, s[121]=1;
	
	while (1){
		k[i]=getchar();
		if (k[i]<=32)	break;
		i++;
	}
	
	n=i;
	for (i=0;i<n;i++){
		if (i+2<n&&s[k[i]]==1&&s[k[i+1]]==1&&s[k[i+2]]==1)	wynn=wynn+(i+1-j)*(n-i-2), j=i+1;
		if (i+2<n&&s[k[i]]==0&&s[k[i+1]]==0&&s[k[i+2]]==0)	wynn=wynn+(i+1-j)*(n-i-2), j=i+1;
	}
	printf ("%I64d", wynn);
	
	
return 0;}