import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
while(sc.hasNext()) {
String str=sc.next();
if(str.equals("end"))
break;
boolean flag=false;
char[] word=str.toCharArray();
for(int i=0;i<word.length;i++)
if(word[i]=='a'||word[i]=='e'
||word[i]=='i'||word[i]=='o'||word[i]=='u') {
flag=true;
break;
}
int count1=0;
int count2=0;
for(int i=0;i<word.length;i++){
if(word[i]=='a'||word[i]=='e'
||word[i]=='i'||word[i]=='o'||word[i]=='u'){
count1++;
if(count1>=3) {
flag=false;
break;}
}
else
count1=0;
}
for(int i=0;i<word.length;i++){
if(word[i]!='a'&&word[i]!='e'
&&word[i]!='i'&&word[i]!='o'&&word[i]!='u'){
count2++;
if(count2>=3) {
flag=false;
break;}
}
else
count2=0;
}
for(int i=0;i<word.length-1;i++) {
if(word[i]==word[i+1]&&word[i]!='e'&&word[i]!='o')
flag=false;
}
if(flag)
System.out.println("<"+str+"> is acceptable.");
else
System.out.println("<"+str+"> is not acceptable.");
}
sc.close();
}
}