#963
Bronze IV
AUTORI
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Great scientific discoveries are often named by the last names of scientists that made them. For example, the most popular asymmetric cryptography system, RSA was discovered by Rivest, Shamir and Adleman. Another notable example is the Knuth- Morris-Pratt algorithm, named by Knuth, Morris and Pratt. Scientific papers reference earlier works a lot and it's not uncommon for one document to use two different naming conventions: the short variation (e.g. KMP) using only the first letters of authors last names and the long variation (e.g. Knuth-Morris-Pratt) using complete last names separated by hyphens. We find mixing two conventions in one paper to be aesthetically unpleasing and would like you to write a program that will transform long variations into short.

입력

The first and only line of input will contain at most 100 characters, uppercase and lowercase letters of the English alphabet and hyphen ('-' ASCII 45). The first character will always be an uppercase letter. Hyphens will always be followed by an uppercase letter. All other characters will be lowercase letters.

출력

The first and only line of output should contain the appropriate short variation.

예제 입력 1

Knuth-Morris-Pratt

예제 출력 1

KMP

예제 입력 2

Mirko-Slavko

예제 출력 2

MS

예제 입력 3

Pasko-Patak

예제 출력 3

PP
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Bronze IV1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.