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()
if (sorted(s) == 'abc'):
  print('Yes')
else:
  print('No')

s = ''.join(sorted(input()))
if (s == 'abc'):
  print('Yes')
else:
  print('No')
