Under construction

Still being built. Things may change

Making an Acronym

Interview

Time limit1sMemory limit128 MB

Summary
Build an acronym from the first letters of words in a phrase, skipping a fixed list of filler words unless one is the first word.
Level

Easy2 of 10

Topics
String, Implementation
Solved
No attempts yet

Problem

Kkung finds even speaking bothersome, so he wants to create an acronym that can stand in for the phrase he wants to say. The rules are as follows.

The phrase contains at least one word, and adjacent words are separated by exactly one space. The acronym is made by taking the first letter of each word. However, the following words are considered useless and are skipped.

i, pa, te, ni, niti, a, ali, nego, no, ili

As an exception, if one of these words appears as the first word of the phrase, it is considered important and must not be skipped.

The acronym must be printed using uppercase letters only. Write a program that creates the acronym for Kkung.

Input

The input consists of exactly one line containing the phrase Kkung wants to say.

The phrase contains only lowercase English letters and spaces. Adjacent words are separated by exactly one space.

The maximum length of the phrase is 100.

Output

Print the acronym that is created.

Examples3

  1. Example 1

    Input
    micro soft
    
    Expected output
    MS
    
  2. Example 2

    Input
    biti ali i ne biti
    
    Expected output
    BNB
    
  3. Example 3

    Input
    ali ja sam i jucer jeo
    
    Expected output
    AJSJJ