import java.util.Scanner; public class Main{ public static void main(String[] args) { Main main=new Main(); main.run(); } void run() { Scanner sc=new Scanner(System.in); String str=sc.next(); str=str.replaceAll("[Il]","1"); str=str.replaceAll("[Oo]","0"); System.out.println(str); } }