#names of months
list1 = ["January","February","March","April","May","June","July","August","September","October","November","December"]
print("First month is "+list1[0])
print("Last month is "+list1[-1])
print("First four months are "+", ".join(list1[:4]))
print("Last five months are "+", ".join(list1[-5:]))

print(list1)