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())
s.sort()
if s == 'abc':
    print('Yes')
else:
    print('No')
s = list(input())
s.sort()
s = ''.join(s)
if s == "abc":
    print('Yes')
else:
    print('No')