Middle Letter

AtCoder
IDabc266_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
atcoder
Output #1
o

The central character of `atcoder` is `o`.
Input #2
a
Output #2
a
API Response (JSON)
{
  "problem": {
    "name": "Middle  Letter",
    "description": {
      "content": "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 i",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc266_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given an odd-length string $S$ consisting of lowercase English letters.\nPrint the central character of $S$.\nWhat is the central character? For an odd-length string $T$, its central character i...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments