import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); scan.close(); for(int i = 0; i < S.length(); i++) { char c = S.charAt(i); if(c == 'I' || c == 'i') { System.out.print(1); }else if(c == 'O' || c == 'o') { System.out.print(0); }else { System.out.print(c); } } System.out.println(); } }