S = input() res = '' for s in S: if s == 'I' or s == 'i': res += '1' elif s == 'O' or s == 'o': res += '0' else: res += s print(res)