#C6088. Joyify String
Joyify String
Joyify String
Given a string s, replace specific words in it according to the following rules:
- Replace every occurrence of
happy
withjoyful
. - Replace every occurrence of
sad
withmelancholy
. - Replace every occurrence of
excited
withthrilled
.
Your program should read the input string from stdin and output the modified string to stdout.
Note: The replacement is a direct string substitution and is not case-sensitive (only lower-case words will appear in the input).
inputFormat
The input consists of a single line containing the string s (which may be empty). The string may contain spaces and punctuation.
Input is provided via stdin.
outputFormat
Output the modified string after performing all required replacements. The output should be written to stdout.
## sampleI am very happy and excited today.
I am very joyful and thrilled today.