s=list(eval(input()))

s.sort()

print(('Yes' if s==['a','b','c'] else 'No'))
s = eval(input())

print(('Yes' if len(set(s)) == 3 else 'No'))
s = list(eval(input()))
s.sort()
print(("Yes" if s == ["a", "b", "c"] else "No"))

s = eval(input())
print(("Yes" if len(set(s)) == 3 else "No"))

-s = list(eval(input())) -s.sort() -print(("Yes" if s == ["a", "b", "c"] else "No")) +s = eval(input()) +print(("Yes" if len(set(s)) == 3 else "No"))