Replace String

0

0 votes
Very-Easy
Problem

Today Ron is reading the book. Due to some reason, he starting hating the word ‘are’(without quotes). So he decided to replace the substring ‘are’ with ‘R’. Since he is busy studying for his test tomorrow, Help him to do this task.

Input Format

A single word containing one or more ‘are’ substrings

Output Format

A single word with ‘are’ substring replaced

Constraints

3 < No. of characters in the word < 10001

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?