list_exp = list(map(str, input().split()))
list1= list(input())
n =len(list1)
for i in range(0,n):
if(list1[i]==list_exp[1]):
list1[i]=list_exp[2]
elif(list1[i]==list_exp[3]):
list1[i]=list_exp[4]
else:
continue
print(''.join(list1))

京公网安备 11010502036488号