'''msg1 = ['The','first','three','items','in','the','list','are:']
print(msg1)
print(msg1[0:3])
print(msg1[3:6])
print(msg1[-3:])
'''
list=['makbak','tombuli','wucidi','dingding','flyfish']
print("The first three items in the list are:")
print(list[:3])

print("Three items from the middle of the list are:")
print(list[1:4])

print("The last three items in the list are:")
print(list[-3:])