# This program reads in a string and says if it is a palindrome

def main():
    string = raw_input( "Enter a string: " )
    head = 0
    tail = len(string) - 1
    done = False
    while not done:
        if string[head] != string[tail]:
            isPalindrome = False
            done = True
        else:
            head += 1
            tail = tail - 1
            if head >= tail:
                done = True
                isPalindrome = True
    if isPalindrome:
        print "Yepper, %s is a palindrome" % string
    else:
        print "no, that isn't a palindrome"

main()
