#1
numl = lambda p: len(set(list(str(p
num = input()
print('yes' if ( numl(num) < len(num) ) else 'No')
#2
rev = lambda p: p[::-1]
print('Yes' if (num == rev(num)) else 'No')
#1
numl = lambda p: len(set(list(str(p
num = input()
print('yes' if ( numl(num) < len(num) ) else 'No')
#2
rev = lambda p: p[::-1]
num = input()
print('Yes' if (num == rev(num)) else 'No')