first_word = input()
second_word = input()

while first_word in second_word:
    second_word = second_word.replace(first_word, "")

print(second_word)

dbce1a815b6450254f268c86ea608f3e8319894b
<mask token>

<mask token>
while first_word in second_word:
    second_word = second_word.replace(first_word, '')
print(second_word)

first_word = input()
second_word = input()
while first_word in second_word:
    second_word = second_word.replace(first_word, '')
print(second_word)

first_word = input()
second_word = input()

while first_word in second_word:
    second_word = second_word.replace(first_word, "")

print(second_word)
