A - ABC -> AC 解説 /

実行時間制限: 2 sec / メモリ制限: 1024 MiB

配点 : 100

問題文

英大文字からなる文字列 S が与えられます。ここで、S の長さは奇数です。

S の中央の文字を削除して得られる文字列を出力してください。ただし、S の中央の文字とは S の長さを L として S\frac{L+1}{2} 文字目の文字を指します。

制約

  • S は英大文字からなる文字列
  • S の長さは 3 以上 9 以下の奇数

入力

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

S

出力

問題文中の指示に従い、文字列を出力せよ。


入力例 1

ABCDE

出力例 1

ABDE

ABCDE の中央の文字は 3 文字目の C であるため、ABDE を出力します。


入力例 2

OOO

出力例 2

OO

入力例 3

ATCODER

出力例 3

ATCDER

Score : 100 points

Problem Statement

You are given a string S consisting of uppercase English letters. Here, the length of S is odd.

Print the string obtained by deleting the middle character of S. The middle character of S is the \frac{L+1}{2}-th character of S, where L is the length of S.

Constraints

  • S is a string consisting of uppercase English letters.
  • The length of S is an odd number between 3 and 9, inclusive.

Input

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

S

Output

Print the string as instructed in the problem statement.


Sample Input 1

ABCDE

Sample Output 1

ABDE

The middle character of ABCDE is the 3-rd character C, so print ABDE.


Sample Input 2

OOO

Sample Output 2

OO

Sample Input 3

ATCODER

Sample Output 3

ATCDER