Problems > Build the Acronym

Build the Acronym

Difficulty: 800 2000 ms 128 MB

strings

Print the acronym of the phrase: the first letter of every word, uppercased.

Input: one line with words separated by single spaces.

Output: the acronym.

Constraints:

  • 1 to 200 words of lowercase letters

Sample Tests

Input 1
random access memory
Output 1
RAM
Input 2
a
Output 2
A

Read the Editorial

Discussion (opens after you solve — no spoilers before)

No comments yet.

Submit Your Solution

Log in or create a free account to run and submit code.