word = "Mississippi"

print(word[0])
print(word[-1])
print(word[4:7])
print(word[-3:])
print(word[:4])

word = "Mississippi"

print(word[0])
print(word[-1])
print(word[4:7])
print(word[-3:])
print(word[:4])
