name=[ 'n', 'i', 't', 'i', 'n' ]
length= len(name)-1
i = 0
while length > i:
    if name[i] == length:
        print ('palidrome hai')
    else:
        print ('palidrome nahi hai')
    length = length-1 
    i = i +1       