text = input()
name = input()
result = text.replace(name, 'die ' + name)
print(result)