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