# Read a string:
# s = input()
# Print a string:
# print(s)

s = input()

print(s[2])
print(s[-2])
print(s[0:5])
print(s[0:9])
print(s[::2])
print(s[1::2])
print(s[::-1])
print(s[::-2])
print(len(s))


#slicing strings
