旧键盘
def quchong(a):
lst = []
for i in list(a):
if i not in lst:
lst.append(i)
return lst
ipt = quchong(input())
otpt = quchong(input())
inpt = ipt
for i in otpt:
if i in ipt:
inpt.remove(i)
k = ''.join(inpt)
k = quchong(k.upper())
print(''.join(k))