#include<iostream>
#include<string>
using namespace std;
#define MAX_EXC 8
#define MAX_ARRAY 7
string exc="AEIOUHWY";
string letters[MAX_ARRAY]={"","BFPV","CGJKQSXZ","DT","L","MN","R"};
int main(int argc, char *argv[]){
string s;
while(cin>>s){
int pre=-1;
int num;
for(int i=0;i<s.length();i++){
if(exc.find(s[i])<MAX_EXC){
pre=-1;
continue;
}else{
for(int j=1;j<MAX_ARRAY;j++){
string tmp=letters[j];
if(tmp.find(s[i])<tmp.length()){
num=j;
break;
}
}
if(num==pre){
continue;
}else{
cout<<num;
pre=num;
}
}
}
cout<<endl;
}
return 0;
}
04-14
2238