#37971: 兩行py


zhoudaniel02@gmail.com (周孝倫)


sp=input()
print(input().replace(sp, "\n"))