import java.util.* ;
import java.lang.* ;
import java.io.* ;
class Codechef {
int n = a.length ( ) ;
char [ ] sdx = a.toUpperCase ( ) .toCharArray ( ) ;
char fl = sdx[ 0 ] ;
for ( int i = 0 ; i < n; i++ ) {
switch ( sdx[ i] ) {
case 'B' :
case 'P' :
case 'F' :
case 'V' :
sdx[ i] = '1' ;
break ;
case 'C' :
case 'S' :
case 'K' :
case 'G' :
case 'J' :
case 'Q' :
case 'X' :
case 'Z' :
sdx[ i] = '2' ;
break ;
case 'D' :
case 'T' :
sdx[ i] = '3' ;
break ;
case 'L' :
sdx[ i] = '4' ;
break ;
case 'M' :
case 'N' :
sdx[ i] = '5' ;
break ;
case 'R' :
sdx[ i] = '6' ;
break ;
default :
sdx[ i] = '0' ;
break ;
}
}
for ( int i = 0 ; i < sdx.length ; i++ ) {
if ( sdx[ i] != '0' ) {
retSdx += sdx[ i] ;
}
}
for ( int i = 1 ; i < retSdx.length ( ) ; i++ ) {
if ( retSdx.charAt ( i) != ( retSdx.charAt ( i- 1 ) ) ) {
ans += retSdx.charAt ( i) ;
}
}
ans = ans + "0000" ;
return ans.substring ( 0 , 4 ) ;
}
public static void main
( String [ ] args
) { Scanner in
= new Scanner
( System .
in ) ; input = " " + input;
String [ ] t
= input.
split ( " " ) ; for ( int i = 1 ; i < t.length ; i++ ) {
List< String> L = words.get ( soundEx( t[ i] ) ) ;
if ( L == null )
words.put ( soundEx( t[ i] ) , L= new ArrayList< String> ( ) ) ;
L.add ( t[ i] ) ;
}
for ( Object x
: words.
keySet ( ) ) { List< String> L = words.get ( x) ;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBDb2RlY2hlZiB7CglwdWJsaWMgc3RhdGljIFN0cmluZyBzb3VuZEV4IChTdHJpbmcgYSl7CgkJaW50IG4gPSBhLmxlbmd0aCgpOwoJCWNoYXIgW10gc2R4ID0gYS50b1VwcGVyQ2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