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 = input()
ss= sorted(s)

if ss=='abc':
  print('Yes')
else:
  print('No')
s = input()

if set(s)=={'a', 'b', 'c'}:
    print('Yes')
else:
    print('No')