# Remove String
# Tissan Kugathas
# ICS 3U0
# April 12 2019

sentence = str(input("Enter a sentence: "))
string = str(input("Enter a string: "))
string = string+" "

print(sentence.replace(string, ""))
