1. 

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
* ACM Programming Contest
* Problem: 10260 Soundex
* Run Time: 0.270
* Date: 2009-04-29
* Author: Simon Baumgartner
*/

public class Main {
public static void main(String...args) throws IOException{
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line = in.readLine();
do{
line = line.replaceAll("(B|F|P|V)+", "1");
line = line.replaceAll("(C|G|J|K|Q|S|X|Z)+", "2");
line = line.replaceAll("(D|T)+", "3");
line = line.replaceAll("(L)+", "4");
line = line.replaceAll("(M|N)+", "5");
line = line.replaceAll("(R)+", "6");
line = line.replaceAll("(A|E|I|O|U|H|W|Y)+", "");
System.out.println(line);
}while((line = in.readLine() ) != null);
}
}