import sys

l = list(eval(input()))



for x in l:

    if l.count(x) > 1:

        print('no')

        sys.exit(0)



print('yes')
S = eval(input())



if len(set(S)) == len(S):

    print('yes')

else:

    print('no')
import sys

l = list(eval(input()))
for x in l:
    if l.count(x) > 1:
        print("no")
        sys.exit(0)
print("yes")

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

-import sys - -l = list(eval(input())) -for x in l: -    if l.count(x) > 1: -        print("no") -        sys.exit(0) -print("yes") +S = eval(input()) +if len(set(S)) == len(S): +    print("yes") +else: +    print("no")