#include<stdio.h>
#include<iostream>
#include<string>
using namespace std;
bool f(char c)
{
if(c==‘a‘||c==‘e‘||c==‘i‘||c==‘o‘||c==‘u‘) return true;
return false;
}
int main()
{
string s;
while(cin>>s&&s!="end")
{
int length=s.length();
int i=0;
int flag=1;
int count_vowel=0;
for(i=0;i<length;i++)
{
if(i<length-2&&length>=3&&((f(s[i])&&f(s[i+1])&&f(s[i+2]))||(!f(s[i])&&!f(s[i+1])&&!f(s[i+2]))))
{
cout<<"<"<<s<<"> is not acceptable.\n";
flag=0;
break;
}