x = input() y = input() a = [] for i in x: if i == y: i = ‘#’ a.append(i)
for j in a: print(j,end = ‘’)