Problem:
 Score : 100 points    Problem Statement You are given a string S of length 3 consisting of a , b and c . Determine if S can be obtained by permuting abc .      Constraints  |S|=3  S consists of a , b and c .         Input Input is given from Standard Input in the following format:  S       Output If S can be obtained by permuting abc , print Yes ; otherwise, print No .        Sample Input 1 bac      Sample Output 1 Yes  Swapping the first and second characters in bac results in abc .       Sample Input 2 bab      Sample Output 2 No       Sample Input 3 abc      Sample Output 3 Yes       Sample Input 4 aaa      Sample Output 4 No

Solution (Python):
S = list(input())
if len(set(S)) == 3:
	print('Yes')
else:
	print('No')

Solution (Python):
s = input()
l = []
for i in range(len(s)):
    l.append(s[i])
l_s = set(l)

if len(l_s) == 3:
    print("Yes")
else:
    print("No")

Solution (Python):
print("YNeos"[sorted(input())!=list("abc")::2])

Solution (Python):
s = input()
if "a" in s and "b" in s and "c" in s:
    print("Yes")
else:print("No")

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

def main():
    s=input()
    if len(set(s))==3:
        print('Yes')
    else:
        print('No')

main()

Solution (Python):
S = input()
ans = []
for i in range(3):
  if S[i] not in ans:
    ans.append(S[i])
    
if len(ans) == 3:
  print("Yes")
else:
  print("No")

Solution (Python):
S = set(input())
l = {'a', 'b', 'c'}

if S == l:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
if len(set(list(s))) == 3:
    print("Yes")
else:
    print("No")

Solution (Python):


import sys










def main():
    s = sys.stdin.readline().rstrip()
    print('Yes' if len(set(s)) == 3 else 'No')


if __name__ == "__main__":
    
    main()

Solution (Python):
A = list(input())
 
l = [0, 0, 0]
 
for i in range(len(A)):
  if A[i] == 'a':
    l[0] = 1
  elif A[i] == 'b':
    l[1] = 1
  else:
    l[2] = 1
    
if l[0] == 1 and l[1] == 1 and l[2] == 1:
  print('Yes')
else:
  print('No')

Solution (Python):

S = input()
if S[0] == S[1]:
    print("No")
elif S[0] == S[2]:
    print("No")
elif S[1] == S[2]:
    print("No")
else:
    print("Yes")

Solution (Python):

s = input()
print('Yes' if s.count('a') == s.count('b') == s.count('c') else 'No')

Solution (Python):
S = input()
if sorted(S) == ['a', 'b', 'c']:
    print("Yes")
else:
    print("No")

Solution (Python):
s = str(input())
print('Yes' if 'a' in s and 'b' in s and'c' in s else'No')

Solution (Python):
if sorted(input())==["a","b","c"]:
  print("Yes")
else:
  print("No")

Solution (Python):

S = input()
ss = set()
ss.add(S[0])
ss.add(S[1])
ss.add(S[2])
if(len(ss) == 3):
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()
if "a" in S and "b" in S and "c" in S:
    print("Yes")
else:
    print("No")

Solution (Python):
s=list(input())
s.sort()
S=s[0]+s[1]+s[2]
if S=='abc':
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
cA = 0
cB = 0
cC = 0
for i in s:
    if i == "a":
        cA+=1
    elif i == "b":
        cB +=1
    elif i == "c":
        cC +=1
    else:
        pass
if cA == 1 and cB==1 and cC == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
S = [c for c in input()]
S.sort()
if S == ['a','b','c']:
  print('Yes')
else:print('No')

Solution (Python):
s = input()
if s.count('a') == s.count('b') == s.count('c') == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
print('Yes' if all([True if S.count(s)==1 else False for s in 'abc']) else 'No')

Solution (Python):
s = input()
if len(set(s)) == 3:
    print('Yes')
else:
    print('No')

Solution (Python):
S = str(input())
if S.count('a') == S.count('b') == S.count('c'):
  print('Yes')
else:
  print('No')

Solution (Python):
print("Yes" if len(set(list(input())))==3 else "No")

Solution (Python):
s=list(input())
s.sort()
if s[0]=='a' and s[1]=='b' and s[2]=='c':
    print("Yes")
else:
    print("No")

Solution (Python):
print("YNeos"[len(set(input()))!=3::2])

Solution (Python):
s = str(input())
if s.count('a')==1 and s.count('b')==1:
    print('Yes')
else:
    print('No')

Solution (Python):
S = list(input())
if sorted(S) == ["a","b","c"]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
if 'a' in S and 'b' in S and 'c' in S:
  print("Yes")
else:
  print("No")

Solution (Python):
slis=list(input())
print('Yes' if len(set(slis))==3 else 'No')

Solution (Python):
S=input()
print('Yes' if 'a' in S and 'b' in S and 'c' in S else 'No')

Solution (Python):
s = str(input())
ans = 0
n = len(s)
for i in range(n):
    if s[i]=="a":
        ans +=1
    
    if s[i]=="b":
        ans +=2
    if s[i]=="c":
        ans +=3
if ans==6:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
a = 0
b = 0
c = 0
for i in S:
  if i == 'a':
    a += 1
  if i == 'b':
    b += 1
  if i == 'c':
  	c += 1
    
if a == 1 and b == 1 and c == 1:
  print("Yes")
else:
  print("No")

Solution (Python):
s=list(input())
s.sort()
if s[0]=='a' and s[1]=='b' and s[2]=='c':
  print('Yes')
else:
  print('No')

Solution (Python):
S = list(input())

import collections
count = collections.Counter(S)

if count["a"]==1 and count["b"]==1 and count["c"]==1:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
print('Yes' if len(s)==len(set(s)) else 'No')

Solution (Python):
s=input()
if s[0]==s[1] or s[0]==s[2]:
  print('No')
elif s[1]==s[2]:
  print('No')
else:
  print('Yes')

Solution (Python):
print("Yes" if len(set(input()))==3 else "No")

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

Solution (Python):
s = input()
S = "".join(set(s))
print("Yes") if len(S) == 3 else print("No")

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

Solution (Python):
print("YNeos"[len(set(input()))<3::2])

Solution (Python):
print("Yes" if len(set(input()))==3 else "No")

Solution (Python):
print("Yes" if len(set(input()))==3 else "No")

Solution (Python):
print('Yes' if sorted(list(input()))==['a','b','c'] else 'No')

Solution (Python):
l = input()
if len([x for x in set(l) if l.count(x) > 1]) > 0:
  print('No')
else:
  print('Yes')

Solution (Python):
s = input()
a = []
for i in range(3):
    a.append(s[i])
b = set(a)
if len(b) != 3:
    print('No')
else:
    print('Yes')

Solution (Python):
S = input()
if (S=="abc") or (S=="acb") or (S=="bca") or (S=="cba") or (S=="bac") or (S=="cab"):
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
if (s=="abc") or (s=="acb") or (s=="bac") or (s=="bca") or (s=="cba") or (s=="cab"):
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()

s = set(s)

if len(s) == 3:
  print("Yes")
else:
  print("No")

Solution (Python):
s=list(input())

if 'a' in s and "b" in s and "c" in s:
      print("Yes")
else:
      print("No")

Solution (Python):
print('Yes' if len(set(input())) == 3 else 'No')

Solution (Python):
abc = input()
if sorted(abc) == ["a", "b", "c"]:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
print("Yes" if all(map(s.__contains__, ("a", "b", "c"))) else "No")

Solution (Python):
s = input()
a = b = c = 0

for i in range(3):
    if s[i] == "a":
        a += 1

    elif s[i] == "b":
        b += 1

    elif s[i] == "c":
        c += 1

print("Yes" if a == b == c == 1 else "No")

Solution (Python):
s=input()
print('Yes' if len(set(s))==3 else 'No')

Solution (Python):
S = input()

if 'a' in S and 'b' in S and 'c' in S:
  print("Yes")
else:
  print("No")

Solution (Python):
s=input()
if s.count('a')==1 and s.count('b')==1 and s.count('c')==1:
        print('Yes')
else:
        print('No')

Solution (Python):
if "".join(sorted(input())) == "abc":
    print("Yes")
else:
    print("No")

Solution (Python):
s=list(str(input()))
s.sort()
s=''.join(map(str,s))
print('Yes' if s=='abc' else 'No')

Solution (Python):
S=input()

if S.count('a')==1 and S.count('b')==1 and S.count('c')==1:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
a = 'a' in S
b = 'b' in S
c = 'c' in S
if a and b and c:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()

if 'a' in S and 'b' in S and 'c' in S:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)

def main():
    s=input()
    if "a" in s and "b" in s and "c" in s:
        print("Yes")
    else:
        print("No")

main()

Solution (Python):
s = input()
if s.count('a')==1:
  if s.count('b')==1:
    if s.count('c')==1:
      print('Yes')
      exit()
print('No')

Solution (Python):
S=input()
used=[0,0,0]
for x in S:
  if x=="a" and used[0] == 0:
    used[0]=1
  elif x=="b" and used[1]==0:
    used[1]=1
  elif x=="c" and used[2]==0:
    used[2]=1
  else:
    print("No")
    exit(0)
print("Yes")

Solution (Python):
if "".join(sorted(list(input()))) == "abc":
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
chars = set(S)
if len(chars) == 3:
    print("Yes")
else:
    print("No")

Solution (Python):
S = sorted(list(input()))
if S[0]=="a" and S[1]=="b" and S[2]=="c":
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
print('Yes' if S.count('a') == 1 and S.count('b') == 1 else 'No')

Solution (Python):
s=list(input())
s.sort()
print('Yes' if s==['a','b','c'] else 'No')

Solution (Python):
print('Yes' if set(input())==set('abc') else 'No')

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = sorted(list(str(input().rstrip('\n'))))
    print("Yes" if "".join(s) == "abc" else "No")


if __name__ == '__main__':
    slove()

Solution (Python):
import sys

input = sys.stdin.readline


def main():
    s = input()
    if "a" in s and "b" in s and "c" in s:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Solution (Python):
s = [i for i in input()]
s.sort()
if s[0] == 'a' and s[1] == 'b' and s[2] == 'c':
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
s = sorted(list(s))

if s == ['a','b','c']:
  print('Yes')
else:
  print('No')

Solution (Python):
s=input();print('NYoe s'['a' in s and 'b' in s and 'c'in s::2])

Solution (Python):
s = input()
if 'a' in s and 'b' in s and 'c' in s:
  print('Yes')
else:
  print('No')

Solution (Python):
s=input()

sort=sorted(s)

if sort==['a', 'b', 'c']:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()
cnt = 0
for i in ["a","b","c"]:
  if i in S:
    cnt+=1
print("Yes" if cnt==3 else"No")

Solution (Python):
S=input()

if S.count('a')==1 and S.count('b')==1 and S.count('c')==1:
    print('Yes')
else:
    print('No')

Solution (Python):
import sys
from collections import defaultdict, deque
from heapq import *
sys.setrecursionlimit(200000)
input = sys.stdin.readline







S = list(input().strip())

if "a" in S and "b" in S and "c" in S:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
s = sorted(list(s))

if s == ["a", "b", "c"]:
    print("Yes")
else:
    print("No")

Solution (Python):
def aa093():
    sn = list(input())

    if sn.count('a') == 1 and sn.count('b') == 1 and sn.count('c') == 1:
        print('Yes')
    else:
        print('No')

aa093()

Solution (Python):
s = input()
l = [i for i in s]
r = ["a","b", "c"]
if sorted(l) == r:
  print("Yes")
else:
  print("No")

Solution (Python):
x=list(input())
x.sort()
if x==["a","b","c"]:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()
if 'a' in S and 'b' in S and 'c' in S:
    print('Yes')
else:
    print('No')

Solution (Python):

S = input()
print("Yes" if len(set(S)) == 3 else "No")

Solution (Python):
S = input()
if S.count("a") == S.count("b") == S.count("c") == 1:
  print("Yes")
else:
  print("No")

Solution (Python):
a = input()
if "a" in a and "b" in a and "c" in a:
  print("Yes")
else:
  print("No")

Solution (Python):
s=input()
if s.count('a')==1 and s.count('b')==1 and s.count('c')==1:
    print('Yes')
else:
    print('No')

Solution (Python):
if sorted(list(input()))==["a","b","c"]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()

if "a" in S and "b" in S and "c" in S:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
if 'a' in s and 'b' in s and 'c' in s:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
if len(set(s)) == 3:
  print("Yes")
else:
  print("No")

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')


S=input()

if sorted(S)==["a","b","c"]:
	print("Yes")
else:
	print("No")

Solution (Python):
s = input()
if s.count('a') == 1 and s.count('b') == 1 and s.count('c') == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
if len(set(input())) == 3:
  print("Yes")
else:
  print("No")

Solution (Python):
S = input()

type_list = []
for s in S:
    if s in type_list:
        pass
    else:
        type_list.append(s)


if len(type_list) == 3:
    print('Yes')
else:
    print('No')

Solution (Python):
S=list(input())
if len(set(S))==3:
  print('Yes')
else:
  print('No')

Solution (Python):
print('Yes' if sorted(input()) == list('abc') else 'No')

Solution (Python):
s = set(list(input()))
if s == {"a","b","c"}:
    print("Yes")
else:
    print("No")

Solution (Python):
S = str(input())

if ('a' in S) & ('b' in S) & ('c' in S):
  print('Yes')
else:
  print('No')

Solution (Python):
print('Yes' if len(set(input()))==3 else 'No')

Solution (Python):
s = input()
if s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[0]:
    print("Yes")
else:
    print("No")

Solution (Python):
print("Yes" if set(input())=={"a","b","c"} else "No")

Solution (Python):
s = list(input())
print("Yes" if len(set(s)) == 3 else "No")

Solution (Python):
s = input()
a = s.count('a')
b = s.count('b')
c = s.count('c')
if(a == 1 and b == 1 and c == 1):
  print("Yes")
else:
  print("No")

Solution (Python):
s=input()
if 'a' in s and 'b' in s and 'c' in s:
  print('Yes')
else:
  print('No')

Solution (Python):
S=input()
if S.count("a")==0:
  print("No")
elif S.count("b")==0:
  print("No")
elif S.count("c")==0:
  print("No")           
else:
  print("Yes")

Solution (Python):
s = input()
print('Yes' if len(set(s)) == 3 else 'No')

Solution (Python):


print("Yes" if "".join(sorted([i for i in input().rstrip()])) == "abc" else "No")

Solution (Python):
a = set(input())
if a == {'a','b','c'}:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
if 'a' in S and 'b' in S and 'c' in S :
  print('Yes')
else :
  print('No')

Solution (Python):
s = list(input())
if 'a' in s and 'b' in s and 'c' in s:
    print('Yes')
else:
    print('No')

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

Solution (Python):
s = set(input())

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

Solution (Python):
A = sorted(list(input()))
if A == ['a','b','c']:
  print('Yes')
else:
  print('No')

Solution (Python):

s = input()
if s.count('a') == 1 and s.count('b') == 1 and s.count('c') == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
n=list(input())
n.sort()
a=n[0]+n[1]+n[2]
if a=="abc":
    print("Yes")
else:
    print("No")

Solution (Python):


s = list(input())

if s.count('a') == 1 and s.count('b') == 1:
  print('Yes')
else:
  print('No')

Solution (Python):
s = input()
print("Yes" if len(set(s)) == 3 else "No")

Solution (Python):
print('Yes' if "".join(sorted(input())) == "abc" else 'No')

Solution (Python):
S = str(input())
S = list(S)
S = sorted(S)

if S[0] == 'a' and S[1] == 'b' and S[2] == 'c':
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()

print('Yes' if len(set(s)) == 3 else 'No')

Solution (Python):
if sorted(list(input())) == ["a", "b", "c"]:
    print("Yes")
else:
    print("No")

Solution (Python):
print('Yes' if ''.join(sorted(input().strip())) == 'abc' else 'No')

Solution (Python):
s=input()
s=sorted(s)
if s[0]=='a' and s[1]=='b' and s[2]=='c':
  print('Yes')
else:
  print('No')

Solution (Python):
s = set(input())

b = {"a","b","c"}
print("Yes" if s == b else "No")

Solution (Python):
S = str(input())

new_S = sorted(S)
new_S = ''.join(new_S)

if new_S == "abc":
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
if "a" in s and "b" in s and "c" in s:
    print("Yes")
else:
    print("No")

Solution (Python):
if len(set(input().strip())) == 3:
    print('Yes')
else:
    print('No')

Solution (Python):
if ''.join(sorted(input().strip())) == 'abc':
    print('Yes')
else:
    print('No')

Solution (Python):
print('Yes' if len(set(input())) == 3 else 'No')

Solution (Python):
print("YNeos"[len(set(input()))<3::2])

Solution (Python):
elements = sorted(list(input()))
if elements == ['a','b','c']:
	print('Yes')
else:
	print('No')

Solution (Python):
print("Yes" if len(set(list(input()))) == 3 else "No")

Solution (Python):
S = list(input())
print('Yes') if sorted(S) == ['a','b','c'] else print('No')

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

Solution (Python):
S = input()
S1 = list(S)
S1.sort()

if S1 == ["a", "b", "c"]:
    print("Yes")
else:
    print("No")

Solution (Python):
s = str(input())
s = "".join(sorted(s))
print("Yes") if s == "abc" else print("No")

Solution (Python):
s=input()
a=list(s)
if a[0]!=a[1] and a[1]!=a[2] and a[2]!=a[0]:
  print('Yes')
else:
  print('No')

Solution (Python):
print("Yes" if ''.join(sorted(input()))=="abc" else "No")

Solution (Python):
S = input()
if S.count('a') == 1 and S.count('b') == 1:
  print('Yes')
  exit()
print('No')

Solution (Python):
S = set(input())

if len(S) == 3:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if len(list(set(s))) == 3:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()

if s[0] != s[1] and s[1]!=s[2] and s[2]!=s[0]:
  print("Yes")
  
else:
  print("No")

Solution (Python):
S = input()
if S.count('a') == 1 and S.count('b') == 1 and S.count('c') == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()

a_cnt = 0
b_cnt = 0
c_cnt = 0

for s in S:
    if s == 'a':
        a_cnt += 1
    elif s == 'b':
        b_cnt += 1
    elif s == 'c':
        c_cnt += 1

if a_cnt == 1 and b_cnt == 1 and c_cnt == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
if s.find('a')+s.find('b')+s.find('c') == 3:
    print('Yes')
else:
    print('No')

Solution (Python):
s=input()
if len(list(set(s)))==3:
  print("Yes")
else:
  print("No")

Solution (Python):
s=str(input())
if(s.count("a") == 1 and s.count("b") == 1 and s.count("c") == 1):
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()

if "a" in S and "b" in S and "c" in S:
    print("Yes")
else:
    print("No")

Solution (Python):
print('Yes'if len(set(input()))==3 else 'No')

Solution (Python):
s = input()
k = (s.count("a") == 1)and (s.count("b") == 1) and(s.count("c") == 1)
print("Yes" if k else "No")

Solution (Python):

s = input()
print("Yes" if len(set(s)) == 3 else "No")

Solution (Python):

S =list(str(input()))

if S[0] != S[1] and S[1] != S[2] and S[2] != S[0]:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
s = list(s)
s.sort()
ans = list("abc")
if (s == ans):
  print("Yes")
else :
  print("No")

Solution (Python):
s = input()
if "a" in s and "b" in s and "c" in s:
  print("Yes")
else:
  print("No")

Solution (Python):
s = set(input())
print('Yes' if len(s)==3 else 'No')

Solution (Python):
S=input()

if "a" in S and "b" in S and "c" in S:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
print("No" if s[0] == s[1] or s[1] == s[2] or s[2] == s[0] else "Yes")

Solution (Python):
s  = input()
list =['a','b','c']
for i in range(len(s)):
    if s[i] in list:
        list.remove(s[i])
        continue
    else:
        print('No')
        exit()
print('Yes')

Solution (Python):
print('Yes' if len(set(input())) == 3 else 'No')

Solution (Python):
S = input()

if S.count('a') == 1 and S.count('b') == 1 and S.count('c') == 1:
  print("Yes")
else:
  print("No")

Solution (Python):
print("Yes" if len(set(input()))==3 else"No")

Solution (Python):
S = input()
original = ['a', 'b', 'c']
for i in range(len(S)):
    if S[i] in original:
        original.pop(original.index(S[i]))
if len(original) == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
s = list(input())
s.sort()
print('Yes' if ''.join(s) == 'abc' else 'No')

Solution (Python):
print('Yes' if len(set(input()))==3 else 'No')

Solution (Python):
s = list(input())

s.sort()
print("Yes" if "".join(s) == "abc" else "No")

Solution (Python):
S =list(input())
S.sort()
if S ==["a","b","c"]:
    print("Yes")
else: print("No")

Solution (Python):
s = input()
print("Yes" if len(set(s)) == 3 else "No")

Solution (Python):


def main():

   print('Yes') if len(set(input()))==3 else print('No')

if __name__== "__main__":
    main()

Solution (Python):
print("Yes" if len(set(input())) == 3 else "No")

Solution (Python):
s = "".join(sorted(list(input())))

if s == "abc":
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
import math
from fractions import gcd





def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""


 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())


 =  int(sys.stdin.readline())
 =  map(int, sys.stdin.readline().split())
 =  list(map(int, sys.stdin.readline().split()))
 =  [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""


S =  sys.stdin.readline().rstrip()

if "a" in S and "b" in S and "c" in S:
    print("Yes")
else:
    print("No")

Solution (Python):
S=input()

if S.count('a')==1:
  if S.count('b')==1:
    if S.count('c')==1:
      print('Yes')
      exit()
print('No')

Solution (Python):
print("Yes" if "".join(sorted(input())) == "abc" else "No")

Solution (Python):
a = str(input())
alist = list(a)
if len(a) == 3:
    alist.sort()
    a = "".join(alist)
    if a == 'abc':
        print('Yes')
    else:
        print('No')
else:
    print('hoge!')

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

Solution (Python):
s = input()
if "a" in s and "b" in s and "c" in s:
    print("Yes")
else:
    print("No")

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

Solution (Python):
num = input()
if "a" in num and "b" in num and "c" in num:
  print("Yes")
else:
  print("No")

Solution (Python):
import sys
from statistics import *
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

s = input()
print('Yes' if "a" in s and 'b' in s and "c" in s else 'No')

Solution (Python):
print("Yes" if len(set(input()))==3 else "No")

Solution (Python):
S = input()
S2 = "".join(sorted(S))
if S2 == "abc":
  print("Yes")
else:
  print("No")

Solution (Python):
s=input()
print('Yes' if s.count('a')==1 and s.count('b')==1 and s.count('c')==1 else 'No')

Solution (Python):
print("YNeos"[len(set(input()))!=3::2])

Solution (Python):

print("Yes" if len(set((input()))) == 3 else "No")

Solution (Python):
s = input()
print("Yes" if "a" in s and "b" in s and "c" in s else "No")

Solution (Python):
print('Yes' if len(set(input())) == 3 else 'No')

Solution (Python):
A=input()
A=list(A)
if A[0]!=A[1] and A[1]!=A[2] and A[2]!=A[0]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
print("Yes" if len(set(S))==3 else "No")

Solution (Python):
if "".join(sorted(input()))=="abc":
  print("Yes")
else:
  print("No")

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

Solution (Python):
s = input()
if "a" in s and "b" in s and "c" in s:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
print('Yes' if len(set(s)) == 3 else 'No')

Solution (Python):
def resolve():
    s = input()
    ans = "Yes" if all([True if c in s else False for c in ["a", "b", "c"]]) else "No"
    print(ans)


if __name__ == "__main__":
    resolve()

Solution (Python):
s=input()
print('Yes' if len(set(s))==3 else 'No')

Solution (Python):
S = input()
lst = list(S)
lst.sort()
S = "".join(lst)
if S == "abc":
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()

if 'a'in s and 'b'in s and 'c'in s :
    print('Yes')
else:
    print('No')

Solution (Python):
s=input()
print('Yes' if 'a' in  s and 'b' in s and 'c' in s else 'No')

Solution (Python):
S=input()
print("Yes" if "a" in S and "b" in S and "c" in S else "No")

Solution (Python):
S="".join(sorted(list(input())))
print("Yes" if S == "abc" else "No")

Solution (Python):
S = "".join(sorted(input()))

if S=="abc":
  print("Yes")
else:
  print("No")

Solution (Python):
print('Yes' if sorted(input()) == list('abc') else 'No')

Solution (Python):
def main(s):
    for x in 'abc':
        if not s.__contains__(x):
            return 'No'

    return 'Yes'


if __name__ == '__main__':
    print(main(input()))

Solution (Python):
s = input()
abc = 'abc'
for c in abc:
  if not c in s:
    print('No')
    exit()
print('Yes')

Solution (Python):
S = list(input())
S.sort()
S = "".join(S)
print("Yes") if S == "abc" else print("No")

Solution (Python):
s = input()
if "a" in s and "b" in s and "c" in s:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
s = [i for i in S]
s = sorted(s)
a = "".join(s)
if a == "abc":
  print("Yes")
else:
  print("No")

Solution (Python):
def main():
    S = input()
    if "a" in S and "b" in S and "c" in S:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main())

Solution (Python):
S = input()
if S == "abc" or S == "acb" or S == "bac" or S == "bca" or S == "cab" or S == "cba":
  print("Yes")
else:
  print("No")

Solution (Python):
s = sorted(list(input()))
if s == ['a', 'b', 'c']:
    print("Yes")
else:
    print("No")

Solution (Python):
s=list(input())
s.sort()
if(s==["a","b","c"]):
    print("Yes")
else:
    print("No")

Solution (Python):
S = list(input())
if S.count('a') == 1 and S.count('b') == 1 and S.count('c') == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
print('Yes' if len(set(s))==3 else 'No')

Solution (Python):
s = input()
print("Yes" if sorted(s) == ["a","b","c"] else "No")

Solution (Python):
print("Yes" if len(set(input()))==3 else "No")

Solution (Python):
print("Yes" if sorted(input())==["a","b","c"] else "No")

Solution (Python):
s = sorted(str(input()))
t = ["a", "b", "c"]
print("Yes" if s == t else "No")

Solution (Python):
S=input()
if set(S) == {"a","b","c"}:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()

if 'a' in s and 'b' in s and 'c' in s:
  print('Yes')
else:
  print('No')

Solution (Python):
S = input()
print('Yes' if ''.join(sorted(S))=='abc' else 'No')

Solution (Python):
print("Yes" if len(set(input()[:])) == 3 else "No")

Solution (Python):
S=str(input())
K=sorted([S[0],S[1],S[2]])
R=K[0]+K[1]+K[2]
if R=='abc':
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()

print("Yes" if len(set(s)) == 3 else "No")

Solution (Python):
s = input()
print('Yes' if len(set(s))==3 else 'No')

Solution (Python):
s = list(input())

s.sort()
s_true = ['a', 'b', 'c']

if s == s_true:
    print('Yes')
else:
    print('No')

Solution (Python):
print('YNeos'[''.join(sorted(input()))!='abc'::2])

Solution (Python):
s=input()
if "".join(sorted(s))=="abc":
  print("Yes")
else:
  print("No")

Solution (Python):
if "".join(sorted(input())) == 'abc':
    print('Yes')
else:
    print('No')

Solution (Python):
S = input()
if 'a' in S and 'b' in S and 'c' in S:
  print("Yes")
else:
  print("No")

Solution (Python):
can = set(list(input())) == {'a', 'b', 'c'}
if can:
    print('Yes')
if not can:
	print('No')

Solution (Python):
s = list(input())
print('Yes' if len(set(s))==3 else 'No')

Solution (Python):
print("Yes" if "".join(sorted(list(str(input()))))=="abc" else "No")

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

Solution (Python):
s = input()

print('Yes' if s.count('a') ==1 and s.count('b') ==1 and s.count('c') ==1 else 'No')

Solution (Python):
print("Yes" if len(set(input()))==3 else "No")

Solution (Python):

S=str(input())
S=sorted(S)
if S==["a","b","c"]:
    print("Yes")
else:
    print("No")

Solution (Python):
import collections
print("Yes" if len(collections.Counter(input()).items()) == 3 else "No")

Solution (Python):
s=list(input())
if s[0]==s[1] or s[0]==s[2] or s[1]==s[2]:
    print("No")
else:
    print("Yes")

Solution (Python):
S=input()

A_count=S.count("a")
B_count=S.count("b")
C_count=S.count("c")

if A_count==1 and B_count==1 and C_count==1:
    print('Yes')
else :
    print('No')

Solution (Python):
def test():
    s = set(input())
    if len(s) == 3:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    test()

Solution (Python):
n=list(input())
print("Yes" if "a" in n and "b" in n and "c" in n else "No")

Solution (Python):
s=input()
print("Yes" if len(set(s))==3 else "No")

Solution (Python):
print("Yes" if len(set(input())) == 3 else "No")

Solution (Python):
s = input()
print("Yes" if len(set(s))==3 else "No")

Solution (Python):
print ("Yes" if len(set(input())) == 3 else "No")

Solution (Python):
S=input()
s=[]
for i in range(3):
    if not S[i] in ["a","b","c"]:
        print("No")
        exit()
    if not S[i] in s:
        s.append(S[i])

if len(s)==3:
    print("Yes")
else:
    print("No")

Solution (Python):
S =sorted(input())
if S ==['a', 'b', 'c']:
  print("Yes")
else:
  print("No")

Solution (Python):
a = [i for i in input()]
if a[0] != a[1] and a[1] != a[2] and a[2] != a[0]:
  print("Yes")
else:
  print("No")

Solution (Python):
def main():
    S = input()

    if S.count('a') == S.count('b') == S.count('c'):
        print('Yes')
    else:
        print('No')
main()

Solution (Python):
N = str(input())
print('Yes') if ('a' in N) and ('b' in N) and ('c' in N) else print('No')

Solution (Python):
print("YNeos"[sorted(input())!=list("abc")::2])

Solution (Python):
print(['No','Yes'][''.join(sorted(input()))=='abc'])

Solution (Python):
S = list(input())
S.sort()
print("Yes" if "".join(S)=="abc" else "No")

Solution (Python):

s = input()
print('Yes' if len(set(s)) == 3 else 'No')

Solution (Python):
print('Yes' if len(set(input())) == 3 else 'No')

Solution (Python):
s = input()
a = int(s.count('a'))
b = int(s.count('b'))
c = int(s.count('c'))

if a==1 and b==1 and c==1:
  print('Yes')
else:
  print('No')

Solution (Python):
print(("No","Yes")[len(set(input()))==3])

Solution (Python):
S = list(input())
S = set(S)

if len(S) == 3:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
l=sorted(s)
if l[0]=='a' and l[1]=='b' and l[2]=='c':
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
a = s.count('a')
b = s.count('b')
c = s.count('c')
if a*b*c == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
s = sorted(input())
if s[0] == 'a' and s[1] == 'b' and s[2] == 'c':
    print('Yes')
else:
    print('No')

Solution (Python):


S = input()
if S.count("a") == 1 and S.count("b") == 1 and S.count("c") == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
S=input()
if 'a' in S and 'b' in S and 'c' in S:
    print('Yes')
else:
    print('No')

Solution (Python):
x = list(input())

k = 0
if "a" in x:
  k += 1
  if "b" in x:
    k += 1
    if "c" in x:
      k += 1

if k==3:
  print("Yes")
else:
  print("No")

Solution (Python):
s = input()
cnt = []
for i in range(3):
  cnt.append(s[i])
cnt.sort()
if cnt == ['a','b','c']:
  print('Yes')
else:
  print('No')