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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "stdio.h"


#define	LL	200000

char	 xx[LL+4];

long long	 w, d;

char	*aa = "abcdefghijklmnopqrstuvwxyz";
char	*ss	= "aeiouy";

int		 tt[128];

void	 stt()
{
	int		 i;

	for (i=0; ss[i]!=0; i++)
		tt[ss[i]]	= 1;
}


int main()
{
	int		 a, b, c, i, t = 0;

	stt();

	while (t++<1 && scanf("%s", xx)>0)
	{
		w	= 0;
		d	= 0;
		a	= -1;
		c	= 0;
		for (i=0; xx[i]!=0; i++)
		{
			b	= tt[xx[i]];
			if (a==b)
			{
				c++;
				if (c>=2)
					d	= i - 1;
			}
			else
			{
				c	= 0;
				a	= b;
			}

			w	+= d;
		}
		printf("%lld\n", w);
	}

	return 0;
}