kratica | 프로그래밍의 벗 PivotOJ
PivotOJ

kratica

시간 제한: 1000ms메모리 제한: 128MB출처: CHC 2005 Regional Competition - JuniorsBOJ 3181

문제

We are given a sentence containing one or more words separated with exactly one space character. Acronym of a given sentence is created by taking the first letter of each word from the sentence, with the exception that the following special words are ignored:

'i', 'pa', 'te', 'ni', 'niti', 'a', 'ali', 'nego', 'no' and 'ili'.

However, if a special word is the first word in the sentence, we consider that word very important and always include it in the acronym.

Write a program that will generate the acronym for the given sentence. Acronym is always written in UPPERCASE. 

입력

First and only line of input contains the given sentence. The only characters that are allowed in the sentence are lowercase letter of English alphabet ('a' ... 'z') and space character.

Number of characters in the sentence will be at most 100. 

출력

First and only line of output should contain the acronym of the given sentence. 

예제

예제 1

입력
micro soft
출력
MS

예제 2

입력
biti ali i ne biti
출력
BNB

예제 3

입력
ali ja sam i jucer jeo
출력
AJSJJ
코드를 제출하려면 로그인하세요.