try:
while True:
line = raw_input() # 读取输入
length = len(line)
i, j = 0, length-1
while i < j:
if line[i] != line[j]:
print 'No!'
break
i += 1
j -= 1
if i >= j:
print 'Yes!'
except:
pass
while 1:
a = raw_input()
for i in range(len(a)):
j = len(a)-1
if a[i] != a[j]:
flag=0
break
else:
flag=1
j -= 1
if i<j:
break
if flag==1:
print "Yes!"
else:
print "No!"