def middle(n):
    if len(n)%2==0:
        print(n[len(n)//2-1]+n[len(n)//2])
    else:
        print(n[len(n)//2])
n=input()
middle(n)

========= Output ===========
 1. world
    r
2.  python 
    th