#include <stdio.h> #include <string.h> int panduan(char a) { if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u') return 1; return 0; } int main(void) { char a[25]; int i,j,k,l; while(scanf("%s",a)!=EOF) { if(!strcmp(a,"end")) break; getchar(); k=0; for(i=0;i<strlen(a);i++) if(panduan(a[i])) { k=1;break; } if(!k) { printf("<%s> is not acceptable.\n",a);continue; } for(i=2;i<strlen(a);i++) if((panduan(a[i])&&panduan(a[i-1])&&panduan(a[i-2]))||(!panduan(a[i])&&!panduan(a[i-1])&&!panduan(a[i-2]))) { k=0;break; } for(i=1;i<strlen(a);i++) if(a[i]==a[i-1]&&a[i]!='e'&&a[i]!='o') { k=0;break; } if(k) printf("<%s> is acceptable.\n",a); else printf("<%s> is not acceptable.\n",a); } return 0; }