while True: r = int(input(">"),2) print("%X" % r)