string = " orange is my favourite color "
slice1 = string[23:29]
slice2 = string[14:23]
slice3 = string[11:13]
slice4 = string[8:10]
slice5 = string[1:7]
result =" ".join([slice1,slice2,slice3,slice4,slice5])
print string
print result