while 1:print(sep='',*[hash(a)%3494%3for a in zip(*input().split())])