# your code goes here
crave=['word1','word2','word3','word4','word5','word6','word7']

n=len(crave)
ITEM=[]
i=0
while 1:
   buff=[]
   for ii in range(min (n-i, 3)):
  	 buff.append(crave[i+ii])
   ITEM.append(buff)
   i=i+3
   if i>n:
      break
print ITEM