Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/string-ortadagi-harflar

Middle letters

Easy 1000 ms 64 MB 21%
Share

A string $s$ is given. Print its middle letter. If the length of the string is even, print the two middle letters.

The letters of the string in cells; the one or two middle letters are highlighted

Input

One line containing the string $s$.

Output

One or two letters.

Note

$1 \le |s| \le 10^{5}$
$s$ consists of lowercase Latin letters (a–z) only

Examples

Input #1
salom
Output #1
l
Input #2
daftar
Output #2
ft

Sign in to submit a solution

Signing up is free and takes a minute.