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