Олимпиадный тренинг

Задача 4994. Replacing one with another


Задача

Темы: Символы Строки
One line contains two characters and some text separated by a space. Write a program to replace all letters in the text that match the first character with the second.

Sample input and output
Test number Input Output
1 a b slovo slovo
2 r t rr rr tt tt