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[0] == s[1] or s[1] == s[2] or s[2] == s[0]:
    print("NO")
else:
    print("YES")
        
s = sorted(input())
if 'a' in s and 'b' in s and 'c' in s:
    print('Yes')
else:
    print('No')
