#include<stdio.h>
#include<string.h>
char s[200];
int main()
{
int j,len,k1,k2,t,ok;
while(scanf("%s",s)&&strcmp(s,"end")!=0)
{
len=strlen(s);
ok=1,k1=0,k2=0,t=0;
for(j=0;j<len;j++)
{
if(s[j]=='a'||s[j]=='e'||s[j]=='i'||s[j]=='o'||s[j]=='u')
{
k1++;
k2=0;
t++;
}
else
{
k1=0;
k2++;
}
if(k1>=3||k2>=3)
ok=0;
if(s[j+1]==s[j])
{
if(s[j]!='e'&&s[j]!='o')
ok=0;
}
}
if(t==0)
printf("<%s> is not acceptable.\n",s);
else if(ok==1)
printf("<%s> is acceptable.\n",s);
else
printf("<%s> is not acceptable.\n",s);
}
return 0;
}
#include<string.h>
char s[200];
int main()
{
int j,len,k1,k2,t,ok;
while(scanf("%s",s)&&strcmp(s,"end")!=0)
{
len=strlen(s);
ok=1,k1=0,k2=0,t=0;
for(j=0;j<len;j++)
{
if(s[j]=='a'||s[j]=='e'||s[j]=='i'||s[j]=='o'||s[j]=='u')
{
k1++;
k2=0;
t++;
}
else
{
k1=0;
k2++;
}
if(k1>=3||k2>=3)
ok=0;
if(s[j+1]==s[j])
{
if(s[j]!='e'&&s[j]!='o')
ok=0;
}
}
if(t==0)
printf("<%s> is not acceptable.\n",s);
else if(ok==1)
printf("<%s> is acceptable.\n",s);
else
printf("<%s> is not acceptable.\n",s);
}
return 0;
}