#C11374. Acronym Generator

    ID: 40683 Type: Default 1000ms 256MiB

Acronym Generator

Acronym Generator

Given a string consisting of words separated by whitespace, generate an acronym using the first letter of each word in uppercase. The input string may contain leading, trailing, or multiple intermediate spaces. The acronym should be formed by taking only the first character of each word and converting it to uppercase.

For example, the string hyper text markup language should produce the output HTML.

Note: If the input string is empty or contains only spaces, the output should be an empty string.

inputFormat

The input consists of a single line from standard input containing a string. The string can have leading or trailing spaces and may include multiple spaces between words.

outputFormat

Output a single line to standard output containing the resulting acronym in uppercase. If there are no words, output an empty string.## sample

hyper text markup language
HTML