Accept a string as input. If the input string is of odd length, then continue with it. If the input string is of even length, make it odd in length as follows:
.), then remove it.) to the end of
the stringCall this string of odd length word. Select the substring made up of three
consecutive characters of word such that there are an equal number of
characters to its left and to its right. Print this substring as output.
You can assume that all input strings will be in lower case and will have a length of at least four.
Input
A single line containing the string.
Output
A single line: the three character substring at the centre.
Example
Input:
abcde
Output:
bcd
Write a complete program: read the input with input() and print the result with print().
Input
abcde
Output
bcd