using System;

namespace yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string str = "";
            str = s.Replace("o", "0");
            str = str.Replace("O", "0");
            str = str.Replace("I","1");
            str = str.Replace("i", "1");
            Console.WriteLine(str);
        }
    }
}