Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/string-qisqartma

Acronym

Easy 1000 ms 128 MB 32%
Share

A text $s$ of lowercase Latin letters and spaces is given. Build an acronym from the first letters of the words, making each of them uppercase. Words are separated by a single space.

Building an acronym from the first letters of the words

Input

One line containing the string $s$.

Output

The acronym on one line.

Note

$1 \le |s| \le 10^{5}$
$s$ consists of lowercase Latin letters and spaces
$s$ does not start or end with a space, and words are separated by exactly one space

Examples

Input #1
toshkent axborot texnologiyalari universiteti
Output #1
TATU
Input #2
algor
Output #2
A

Sign in to submit a solution

Signing up is free and takes a minute.