S = input() s = '' for i in S: if i in 'Il': s += '1' elif i in 'Oo': s += '0' else: s += i print(s)