# File: Find_out_if_the_input_word_is_palindrom.py
# Description: Processing string and checking if it is a palindrom
# Environment: PyCharm and Anaconda environment
#
# MIT License
# Copyright (c) 2018 Valentyn N Sichkar
# github.com/sichkar-valentyn
#
# Reference to:
# [1] Valentyn N Sichkar. Find out if the input word is palindrom // GitHub platform [Electronic resource]. URL: https://github.com/sichkar-valentyn/Find_out_if_the_input_word_is_palindrom (date of access: XX.XX.XXXX)


# Imlementing the task
# Find out if the input word is a palindrom

dna = input().lower()  # Putting word in low case

# First way to check - is usinf loop
i = 0
j = len(dna) - 1
palindrom = True
while i < j:
    if dna[i] != dna[j]:
        palindrom = False
        break # stop the loop
    i += 1
    j -= 1
if palindrom:
    print('Yes')
else:
    print('No')

# Another way to check - slicing of strings
dna_revers = dna[::-1]  # Going from the end to the beginning with the step = 1
if dna == dna_revers:
    print('Yes')
else:
    print('No')
