S = eval(input())



if S[0] == S[1] or S[0] == S[2] or S[1] == S[2]:

    print ('No')

else:

    print ('Yes')
S = list(eval(input()))

S.sort()



a = ['a','b','c']



if S == a:

  print('Yes')

else:

  print('No')
S = eval(input())
if S[0] == S[1] or S[0] == S[2] or S[1] == S[2]:
    print("No")
else:
    print("Yes")

S = list(eval(input()))
S.sort()
a = ["a", "b", "c"]
if S == a:
    print("Yes")
else:
    print("No")

-S = eval(input()) -if S[0] == S[1] or S[0] == S[2] or S[1] == S[2]: +S = list(eval(input())) +S.sort() +a = ["a", "b", "c"] +if S == a: +    print("Yes") +else: -else: -    print("Yes")