You are given a string S of length 3 consisting of `a`, `b` and `c`. Determine if S can be obtained by permuting `abc`.
a = input()
b = sorted(a)
#for n in b:
#    print(n,end="")
c = b[0] + b[1] + b[2]
if "abc" == c:
    print("はい")
else:
    print("いいえ")
a = input()
b = sorted(a)
#for n in b:
#    print(n,end="")
c = b[0] + b[1] + b[2]
if "abc" == c:
    print("Yes")
else:
    print("No")