#C74. Autocomplete Word Uppercase Replacement

    ID: 51266 Type: Default 1000ms 256MiB

Autocomplete Word Uppercase Replacement

Autocomplete Word Uppercase Replacement

Given a paragraph of text and a list of keywords, your task is to replace every occurrence of the keywords in the paragraph with their uppercase version. The matching is case-insensitive and ignores punctuation. However, only exact matches are to be replaced; substrings that are part of longer words should be left unchanged.

Note: Words are defined as consecutive alphanumeric characters (and underscores), and punctuation is not considered when matching.

inputFormat

The input consists of two lines. The first line is a paragraph of text. The second line contains space-separated keywords. If there are no keywords, the second line will be empty.

outputFormat

Output the modified paragraph after replacing all occurrences of the keywords (ignoring case and punctuation) with their uppercase version.## sample

hello world, this is a simple example of autocomplete functionality.
hello example functionality
HELLO world, this is a simple EXAMPLE of autocomplete FUNCTIONALITY.