A - AtCoder *** Contest Editorial /

Time Limit: 2 sec / Memory Limit: 256 MB

配点 : 100100

問題文

すぬけ君は、AtCoder ss Contest という名前のコンテストを開こうとしています。 ここで、ss は長さ 11 以上の文字列であり、11 文字目は英大文字、22 文字目以降は英小文字です。

すぬけ君は、このコンテストの略称を AxxC に決めました。 ここで、xxss の先頭の英大文字です。

コンテストの名前が与えられるので、コンテストの略称を出力してください。

制約

  • ss の長さは 11 以上 100100 以下である。
  • ss11 文字目は英大文字である。
  • ss22 文字目以降は英小文字である。

入力

入力は以下の形式で標準入力から与えられる。

AtCoder ss Contest

出力

コンテストの略称を出力せよ。


入力例 1Copy

Copy
AtCoder Beginner Contest

出力例 1Copy

Copy
ABC

今あなたが参加しているコンテストです。


入力例 2Copy

Copy
AtCoder Snuke Contest

出力例 2Copy

Copy
ASC

このコンテストは存在しません。


入力例 3Copy

Copy
AtCoder X Contest

出力例 3Copy

Copy
AXC

Score : 100100 points

Problem Statement

Snuke is going to open a contest named "AtCoder ss Contest". Here, ss is a string of length 11 or greater, where the first character is an uppercase English letter, and the second and subsequent characters are lowercase English letters.

Snuke has decided to abbreviate the name of the contest as "AxxC". Here, xx is the uppercase English letter at the beginning of ss.

Given the name of the contest, print the abbreviation of the name.

Constraints

  • The length of ss is between 11 and 100100, inclusive.
  • The first character in ss is an uppercase English letter.
  • The second and subsequent characters in ss are lowercase English letters.

Input

The input is given from Standard Input in the following format:

AtCoder ss Contest

Output

Print the abbreviation of the name of the contest.


Sample Input 1Copy

Copy
AtCoder Beginner Contest

Sample Output 1Copy

Copy
ABC

The contest in which you are participating now.


Sample Input 2Copy

Copy
AtCoder Snuke Contest

Sample Output 2Copy

Copy
ASC

This contest does not actually exist.


Sample Input 3Copy

Copy
AtCoder X Contest

Sample Output 3Copy

Copy
AXC


2025-04-07 (Mon)
01:05:55 +00:00