10411 - Problem 3   

Description

The input contains two words and a sentence which contains only lower case letters.
Please find the first word in the sentence and replace it with the second word.

For example, 
sentence : can you can a can as a canner can can a can 
words : can will
output : will you will a will as a canner will will a will 

Input

First line is a sentence which contains only lower case letters. The sentence length is less than or equal to 200 characters. Each word is separated by a space. There is a space at the end of the input sentence. 
Second line is two words separated by a space. Each word length is less than or equal to 20 characters.

Output

The output is the edited sentence. Each word in the output sentence is separated by a space, and there is a space at the end of the output sentence.
Note that you don’t have to print a newline at the end.

Sample Input  Download

Sample Output  Download

Tags




Discuss