s = list(eval(input()))

a = s.count("a")

b = s.count("b")

c = s.count("c")

if a == 1 and b == 1 and c == 1:

    print("Yes")

else:

    print("No")
s = eval(input())

if s.count('a') == 1 and s.count('b') == 1 and s.count('c'):

    print("Yes")

else:

    print("No")
s = list(eval(input()))
a = s.count("a")
b = s.count("b")
c = s.count("c")
if a == 1 and b == 1 and c == 1:
    print("Yes")
else:
    print("No")

s = eval(input())
if s.count("a") == 1 and s.count("b") == 1 and s.count("c"):
    print("Yes")
else:
    print("No")

-s = list(eval(input())) -a = s.count("a") -b = s.count("b") -c = s.count("c") -if a == 1 and b == 1 and c == 1: +s = eval(input()) +if s.count("a") == 1 and s.count("b") == 1 and s.count("c"):