You are given a string S of length 3 consisting of `a`, `b` and `c`. Determine if S can be obtained by permuting `abc`.
print("Yes" if "abc"==sorted(input()) else "No")
print("Yes" if list("abc")==sorted(input()) else "No")