s = input() de = input() for i in de: s = s.replace(i, '') print(s)