102660: [AtCoder]ABC266 A - Middle Letter

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:4 Solved:0

Description

Score : $100$ points

Problem Statement

You are given an odd-length string $S$ consisting of lowercase English letters.

Print the central character of $S$.

What is the central character? For an odd-length string $T$, its central character is the $\frac{|T|+1}{2}$-th character from the beginning, where $|T|$ is the length of $T$.

Constraints

  • $S$ is an odd-length string consisting of lowercase English letters.
  • The length of $S$ is between $1$ and $99$ (inclusive).

Input

Input is given from Standard Input in the following format:

$S$

Output

Print the answer.


Sample Input 1

atcoder

Sample Output 1

o

The central character of atcoder is o.


Sample Input 2

a

Sample Output 2

a

Input

题意翻译

读入字符串 $S$,输出其的中间的字符,即第 $\frac{|T|+1}{2}$ 个字符,数据保证 $|S|$ 是奇数。

Output

得分:100分

问题描述

给你一个由小写英文字母组成的奇数长度的字符串$S$。

打印字符串$S$的中心字符。

什么是中心字符? 对于一个奇数长度的字符串$T$,其中心字符是从开始的第$\frac{|T|+1}{2}$个字符,其中$|T|$是字符串$T$的长度。

约束条件

  • $S$是一个由小写英文字母组成的奇数长度的字符串。
  • $S$的长度在1到99(含)之间。

输入

输入从标准输入以如下格式给出:

$S$

输出

打印答案。


样例输入1

atcoder

样例输出1

o

atcoder的中心字符是o


样例输入2

a

样例输出2

a

加入题单

算法标签: