guest = 'SANTACLAUS'
host = 'DEDMOROZ'
dic = 'SANTAMOROZDEDCLAUS'
sum_name = guest + host
a = 0
dic = list(dic)
c = 0
for i in sum_name:
for j in range(len(dic)):
if i == dic[j]:
dic[j] = ''
a = 1
break
if a == 0:
c = 1
print('no')
break
if c == 0:
dic = "".join(dic)
if len(dic) != 0:
print('no')
else:
print('yes')