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