sentence = str(input('Please input a sentence.'))
wordToReplace = str(input('Please input a word to replace.'))
replaceWith = str(input('Please input a word to replace it with.'))

print(sentence.replace(wordToReplace, replaceWith))