from collections import defaultdict

S = eval(input())

d = defaultdict(int)

for i in range(len(S)):

  d[S[i]] += 1

for val in list(d.values()):

  if val != 1:

    print("no")

    exit()

print("yes")
L = list(eval(input()))

S = set(L)

if len(L) == len(S):

  print("yes")

else:

  print("no")
from collections import defaultdict

S = eval(input())
d = defaultdict(int)
for i in range(len(S)):
    d[S[i]] += 1
for val in list(d.values()):
    if val != 1:
        print("no")
        exit()
print("yes")

L = list(eval(input()))
S = set(L)
if len(L) == len(S):
    print("yes")
else:
    print("no")

-from collections import defaultdict - -S = eval(input()) -d = defaultdict(int) -for i in range(len(S)): -    d[S[i]] += 1 -for val in list(d.values()): -    if val != 1: -        print("no") -        exit() -print("yes") +L = list(eval(input())) +S = set(L) +if len(L) == len(S): +    print("yes") +else: +    print("no")