r=raw_input s=r() try: while 1:s=''.join(chr(ord(c)+23265%ord(e)-1)for c,e in zip(s,r())) except:r(s)