import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000676_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { System.out.println(br.readLine().replaceAll("I", "1").replaceAll("l", "1").replaceAll("O", "0").replaceAll("o", "0")); } }