(function (f, s) for i=1,#s do io.write((f(s,i,i)=="I" or f(s,i,i)=="l") and 1 or (f(s,i,i)=="O" or f(s,i,i)=="o") and 0 or f(s,i,i)) end io.write("\n") end)(string.sub, io.stdin:read("*l"))