import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); str = str.replace("I", "1"); str = str.replace("i", "1"); str = str.replace("O", "0"); str = str.replace("o", "0"); System.out.println(str); } }