s = input() result = '' for si in s: if si=="I" or si=="l": result+="1" elif si=="O" or si=="o": result+="0" else: result+=si print(result)