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 = 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):
str=list(input())
if 'a' in str:
    if 'b' in str:
        if 'c' in str:
            print('Yes')
        else:
            print('No')
    else:
        print('No')
else:
    print('No')

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

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

Solution (Python):
import math
import sys

def getinputdata():

    
    array_result = []    
    data = input()
    array_result.append(data.split(" "))

    flg = True

    try:
        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

s = arr_data[0][0]



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

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

Solution (Python):

import numpy as np
hoge = input()
ans = "abc"
flag = True

for char in "abc":
    if (hoge.find(char)==-1):
        flag = False
if flag:
    print('Yes')
else:
    print('No')

Solution (Python):
a = [i for i in input()]
b = set(a)
print(["No", "Yes"][len(a) == 3 and len(b) == 3])

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

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

Solution (Python):
n=list(input())
n.sort()
moji="".join(n)
if moji=="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):
n=str(raw_input())
if n.count('a')==1 and n.count('b')==1 and n.count('c')==1:
	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):
a = set()
b = list(input())
for c in b:
    a.add(c)
if len(a) == 3:
    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 = set(list(input()))
if len(S) == 3:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
check = True
if 'a' in s:
	t = 1
else:
	check = False
if 'b' in s:
	t = 1
else:
	check = False
if 'c' in s:
	t = 1
else:
	check = False
if check:
	print('Yes')
else:
	print('No')

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

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

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 = list(input())

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

Solution (Python):
S = input()
if S[0] != S[1] != S[2] != S[0]:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
a = False
b = False
c = False
for ss in s:
    a = True if a else ss == 'a'
    b = True if b else ss == 'b'
    c = True if c else ss == 'c'
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):

data = input()
 
if data.find('a') != -1 and data.find('b') != -1 and data.find('c') != -1:
    print('Yes')
else:
    print('No')

Solution (Python):
s = input()
s = list(s)
s.sort()
s = ''.join(s)
print('Yes' if s == 'abc' 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 == "abc" or S == "acb" or S == "bac" or S == "bca" or S == "cab" or S == "cba":
	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):
inp = input()
if 'a' in [inp[0],inp[1],inp[2]] and 'b' in [inp[0],inp[1],inp[2]] and 'c' in [inp[0],inp[1],inp[2]]: print('Yes')
else: print('No')

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

x=s[0]
y=s[1]
z=s[2]

if y==x or z == x:
    print('No')
else:
    if z == y:
        print('No')
    else:
        print('Yes')

Solution (Python):
s = input()
if s.find('a') != -1:
    if s.find('b') != -1:
        if s.find('c') != -1:
            print('Yes')
        else:
            print('No')
    else:
        print('No')
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):



keyword = input()

if keyword.find("a") != -1 and keyword.find("b") != -1 and keyword.find("c") != -1:
	print("Yes")
else:
	print("No")

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

Solution (Python):
st = sorted(list(input()))
if st==['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()
set=[]
set.append(S[0])
set.append(S[1])
set.append(S[2])
if 'a' in set:
    if 'b' in set:
        if 'c' in set:
            print("Yes")
            exit()
print("No")

Solution (Python):
s = input()
k=0
rei=['a','b','c']
def counter(v):
	a=0
	for i in list(s):
		if i == v:
			a+=1
	return a
result=0
for i in rei:
	if counter(i) == 1:
		result+=1
if result == 3:
	print("Yes")
else:
	print("No")

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

if ''.join(S) == 'abc':
  print('Yes')
else:
  print('No')

Solution (Python):

s = input()

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

Solution (Python):
s = input()

b = True
b = b and ('a' in s)
b = b and ('b' in s)
b = b and ('c' in s)

if b :
	print('Yes')
else:
	print('No')

Solution (Python):


S = list(input())

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

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

Solution (Python):
S = input()

chksum = 0
 
if ('a' in S):
    chksum+=1
if ('b' in S):
    chksum+=1
if ('c' in S):
    chksum+=1
    
if chksum == 3:
	print("Yes")
else:
	print("No")

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

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

sumw = 0

for i in s:
    if i is 'a':
        sumw += 1
    if i is 'b':
        sumw += 2
    if i is 'c':
        sumw += 4


if sumw is 7:
    print("Yes")

else:
    print("No")

Solution (Python):
s = input()


alb_list = [0, 0, 0]

for i in range(3):
    t = s[i]
    
    if s[i] == "a":
        alb_list[0] += 1
    elif s[i] == "b":
        alb_list[1] += 1
    elif s[i] == "c":
        alb_list[2] += 1
    else:
        continue

ans = 0
for i in range(3):
    if alb_list[i] != 1:
        ans = 1

if ans == 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
def main():
    S = input()
    if (S.find('a') > -1 ) and (S.find('b') > -1) and (S.find('c') > -1):
        return 'Yes'
    else:
        return 'No'

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

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

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

Solution (Python):
S = input()

target = "abc"

for c in target:
  if S.count(c) != 1:
    print("No")
    exit()

print("Yes")

Solution (Python):
S = input()

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

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

main()

Solution (Python):
A=input()
n=len(A)
ans=1
for i in range(n):
  if(A[i]=="a"):
    ans=ans*2
  if(A[i]=="b"):
    ans=ans*3
  if(A[i]=="c"):
    ans=ans*4
if(ans==24):
  print("Yes")
else:
  print("No")

Solution (Python):
n = str(input())
nl = list(n)
nlset = set(nl)
def check(onelist):
    if nlset == {'a','b','c'}:
        print('Yes')
    else:
        print('No')
check(nlset)

Solution (Python):
s = input()

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

Solution (Python):

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

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

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

Solution (Python):
x=input()
res=[0,0,0]

for i in x:
    if i=='a':
        res[0]=1
    if i == 'b':
        res[1] =1
    if i =='c':
        res[2]=1

if res==[1,1,1]:
    print('Yes')
else:
    print('No')

Solution (Python):




def main(input_str):
    checker = {}
    checker['a'] = False
    checker['b'] = False
    checker['c'] = False
    
    if 3 != len(list(input_str)):
        print('No')
        return

    for s in list(input_str):
        checker[s] = True
    
    
    if checker['a'] and checker['b'] and checker['c']:
        print('Yes')
        return
    print('No')
    return


if __name__ == '__main__':
    try:
        main(input().strip())
    except EOFError:
        pass

Solution (Python):
import sys

s_args = sys.stdin.read().splitlines()

abc = set(list("abc"))

inp = set(list(s_args[0]))

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

Solution (Python):
def main():
    a = input()
    if 'a' in a and 'b' in a and 'c' in a:
        print("Yes", end="")
    else:
        print("No", end="")

if __name__ == "__main__":
    main()

Solution (Python):
from collections import defaultdict as dd
from collections import Counter
from pprint import pprint as pp

YN = {True: 'Yes', False: 'No'}
ri = lambda: int(input())
ria = lambda: list(map(int, input().split()))
rian = lambda n: [ria() for _ in range(n)]
rs = lambda: input()
rsa = lambda: input().split()
rsn = lambda n: [rs() for _ in range(n)]

S = rs()
print(YN[''.join(sorted(S)) == 'abc'])

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

A.sort()

if A == ['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 = input().split()

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

Solution (Python):
line = input()
if line.find("a") != -1 and line.find("b") != -1 and line.find("c") != -1:
    print("Yes")
else:
    print("No")

Solution (Python):
text = raw_input()

if 'a' in text and 'b' in text and 'c' in text:
    print 'Yes'
else:
    print 'No'

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):
import sys

S = input()
T = "abc"
if len(S) > 3:
  print("No")
else:
  for i in S:
    if i in T:
      T = T.replace(i,'')
    else:
      print("No")
      sys.exit()
  print("Yes")

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

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

b = s.find("a")
v = s.find("b")
t = s.find("c")

m = int(b) + int(v) + int(t)

if m == 3:
    print("Yes")
if m != 3:
    print("No")

Solution (Python):
a = input()
if a in ["abc","acb","bac","bca","cab","cba"]: 
  print("Yes")
else:
  print("No")

Solution (Python):
import itertools
S = input()
s1 = []
s1.append(S[0])
s1.append(S[1])
s1.append(S[2])
s1.sort()
if [('a', 'b', 'c')] == list(itertools.combinations(s1,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 == "abc":
    print("Yes")

elif s == "acb":
    print("Yes")

elif s == "bac":
    print("Yes")

elif s == "bca":
    print("Yes")

elif s == "cab":
    print("Yes")

elif s == "cba":
    print("Yes")

elif s == "abc":
    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()

counter = {"a":0,"b":0,"c":0}
for x in S:
    if x == "a":
        counter["a"] +=1
    if x == "b":
        counter["b"] +=1
    if x == "c":
        counter["c"] +=1

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

Solution (Python):
S = input()

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

Solution (Python):
S=input()
n=0
if 'a' in S:
    n+=1
    if 'b' in S:
        n+=1
        if 'c' in S:
            n+=1
            print('Yes')
if n!=3:
    print('No')

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

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

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

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

Solution (Python):
s = input()

if s.count('a') < 2 and s.count('b') < 2 and s.count('c') < 2:
        print('Yes')
else:
        print('No')

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

Solution (Python):

import re
S = input()
find_a = re.findall("a",S)
find_b = re.findall("b",S)
find_c = re.findall("c",S)
if find_a and find_b and find_c:
    print("Yes")
else:
    print("No")

Solution (Python):
s = list(input())
abc = ['a', 'b', 'c']
end = 0
for si in s:
    if si in abc:
        abc.remove(si)
    if len(abc) == 0:
        print('Yes')
        end = 1
        break
if end == 0:
    print('No')

Solution (Python):

data = input();
Indata = [];
fg = 0;
for lop in range(3):
    if data[lop] == 'a' or data[lop] == 'b' or data[lop]== 'c':
        if not(lop == 0):   
            for lop2 in range(lop):
                if Indata[lop2] == data[lop]:
                    fg = 1;
        Indata.append(data[lop]);
    else:
        fg = 1;
    if fg == 1:
        break;

if fg == 1:
    print("No\n");
else:
    print("Yes\n");

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

for i in s:
    if i == "a" and a == 0:
        a += 1
    elif i == "b" and b == 0:
        b += 1
    elif i == "c" and c == 0:
        c += 1
    else:
        print("No")
        break
else:
    print("Yes")

Solution (Python):
import numpy as np

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 = input()
t = 'abc'
isNotFind = True
if len(s) != 3:
    isNotFind = False

for u in t:
    if s.find(u) < 0:
        isNotFind = False
        break

if isNotFind:
    print('Yes')
else:
    print('No')

Solution (Python):
def abc_of_ABC(S):
    l = [S[0], S[1], S[2]]
    l.sort()
    if l == ['a', 'b', 'c']:
        print('Yes')
    else:
        print('No')

def main():
    S = input()
    abc_of_ABC(S)

if __name__ == '__main__':
    main()

Solution (Python):
s = str(input())
ans_list = ['abc', 'acb', 'bac', 'bca', 'cab', 'cba']
if s in ans_list:
    print('Yes')
    exit()
print('No')

Solution (Python):
S = input()
if S.find('a') != -1:
    if S.find('b') != -1:
        if S.find('c') != -1:
            print("Yes")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

Solution (Python):
from collections import Counter
 
print("Yes" if Counter(input()) == Counter("abc") else "No")

Solution (Python):
import re
line = input()
if re.match(".*a.*",line) and re.match(".*b.*",line) and re.match(".*c.*",line):
    print("Yes")
else:
    print("No")

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

s.sort()

s = ''.join(s)

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

Solution (Python):
s=input()
a = 0
b = 0
c = 0
for i in range(3):
    if s[i] == 'a':
        a = a + 1
    elif s[i] == 'b':
        b = b + 1
    elif s[i] == 'c':
        c = c + 1
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):
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):
code = input()

if code[0]==code[1] or code[0] == code[2] or code[1] == code[2]:
    print("No")
else:
    print("Yes")

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



else:
    print("No")

Solution (Python):
import collections
abc = input().strip()
if len(abc) != 3:
    print("No")
else:
    c = collections.Counter(abc)
    if c['a']==1 and c['b'] ==1 and c['c'] == 1:
        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):
def main():
    abc = 'abc'
    S = input()
    for c in S:
        if c in abc:
            abc = abc.replace(c, '')
        else:
            print('No')
            return
    print('Yes')


if __name__ == '__main__':
    main()

Solution (Python):
s = input()

if all(x in s for x in ['a', 'b', 'c']):
    print("Yes")
else:
    print("No")

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

Solution (Python):

inputs = input()

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

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

Solution (Python):
S = input()
T = "abc" 
ans = "Yes"
for t in T:
    if t in S:
        continue
    else:
        ans = "No"
        break
print(ans)

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

Solution (Python):
def main():

    s = input()


    s_list = []
    for char in s:
        s_list.append(char)
        
    s_list.sort(reverse=False)


    if ''.join(s_list) == 'abc':
        print('Yes')
    else:
        print('No')



if __name__ == "__main__":
    main()

Solution (Python):
a= str(input())
if a=='abc':
	print("Yes")
elif a=='acb':
	print("Yes")
elif a=='bac':
	print("Yes")
elif a=='bca':
	print("Yes")
elif a== 'cab':
	print("Yes")
elif a=='cba':
	print("Yes")
else:
	print("No")

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

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

Solution (Python):
n = input()
print('Yes') if set(n) == set('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()
data = ["a", "b","c"]
flag = 0
for i in range(3):
    if s[i] in data:
        data.remove(s[i])
    else:
        print("No")
        flag = 1
        break
if(flag == 0):
    print("Yes")

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

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

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

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

Solution (Python):
str = input()

ac = str.find('a')
bc = str.find('b')
cc = str.find('c')
if ac != -1 and bc != -1 and cc != -1:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
                                                                                                      
if  s.find("a") < 0:
  print("No")
elif s.find("b") < 0:
  print("No")
elif s.find("c") < 0:
  print("No")
else:
  print("Yes")

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

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

Solution (Python):
n = input()
ok = False
if n.find("a")!=-1:
    if n.find("b")!=-1:
        if n.find("c")!=-1:
            ok = True
if ok:
    print("Yes")
else :
    print("No")

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

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

main()

Solution (Python):
s = [i for i in input()]
if s.count("a") > 1:
  print("No")
elif s.count("b") > 1:
  print("No")
elif s.count("c") > 1:
  print("No")
else:
  print("Yes")

Solution (Python):


import numpy as np

A = input()

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

Solution (Python):
print('Yes' if sorted(list(input()))==['a', 'b', 'c'] else '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()
sortedS=sorted(S)
if sortedS==["a","b","c"]:
    print("Yes")
else:
    print("No")

Solution (Python):
S = input()
a = ["a","b","c"]
if len(S) != 3:
    print('No')
for w in S:
    if w in a:
        a.remove(w)
if a == []:
    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):


def exec():
    s = input()
    a,b,c = 0,0,0
    for ch in s :
        if ch == 'a':
            a += 1
        elif ch == 'b':
            b += 1
        elif ch == 'c':
            c += 1
    if a == 1 and b == 1 and c == 1:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
  exec()

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()
x='abc'
ck=1
for i in x:
	if i in S:
		ck=ck*1
	else:
		ck=ck*0
if ck==1:
	print('Yes')
else:
	print('No')

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

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

Solution (Python):
import sys

S=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()
if S.count('a')==S.count('b')==S.count('c')==1:
	print('Yes')
else:
	print('No')

Solution (Python):
s = input()
abc = [0 for i in range(3)]

for i in range(3):
    if s[i]=="a" and abc[0]!=1:
        abc[0]=1
        continue
    elif s[i]=="b" and abc[1]!=1:
        abc[1]=1
        continue
    elif s[i]=="c" and abc[2]!=1:
        abc[2]=1
        continue
    else:
        print("No")
        exit()
print("Yes")

Solution (Python):
s=input()
ans=[0,0,0]
for i in range(3):
  if s[i]=='a':
    ans[0]+=1
  elif s[i]=='b':
    ans[1]+=1
  else:
    ans[2]+=1
if ans[0]==1 and ans[1]==1 and ans[2]==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()

a_num = 0
b_num = 0
c_num = 0
for i in S:
    if i == "a":
        a_num = a_num + 1
    elif i == "b":
        b_num = b_num + 1
    elif i == "c":
        c_num = c_num +1

if a_num == 1 and b_num == 1 and c_num == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
abc = input()

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

Solution (Python):
S = input()
ans = "Yes"
for s in "abc":
    if s not in S:
        ans = "No"
print(ans)

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 S.count("a") == 1 and S.count("b") == 1 and S.count("c") == 1:
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()
alpha = [0, 0, 0]
for i in range(len(s)):
    if s[i] == 'a':
        alpha[0] += 1
    elif s[i] == 'b':
        alpha[1] += 1
    else:
        alpha[2] += 1
flag = 0
for i in range(3):
    if alpha[i] != 1:
        flag = 1
if flag == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
s=input()
flag=0
if "a" in s:
    if "b" in s:
        if "c" in s:
            
            flag=1
if flag==1:
    print("Yes")
if flag==0:
    print("No")

Solution (Python):
S_ary = list(raw_input())

S_ary.sort()

if S_ary == ['a', 'b', 'c']:
    print 'Yes'
else:
    print 'No'

Solution (Python):

S = input()

check = [0]*3

for i in range(3):
	check[ord(S[i]) - ord('a')] += 1
	
if check[0] == 0 or check[1] == 0 or check [2] == 0:
	print("No")
else:
	print("Yes")

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):
abc = input()
if 'a' in abc and 'b' in abc and 'c' in 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()
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 (not "a" in s) or (not "b" in s) or (not "c" in s):
    print("No")
else:
    print("Yes")

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

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

main()

Solution (Python):
from itertools import permutations

s = input()
if s in map(lambda x: ''.join(x), permutations('abc')):
    print('Yes')
else:
    print('No')

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

Solution (Python):
def solve(s):
    if s.count("a")>0 and s.count("b")>0 and s.count("c")>0:
        return True
    return False
s=input()
if solve(s):
    print("Yes")
else:
    print("No")

Solution (Python):
s = input()

prod = 1
for i in range(len(s)):
  if s[i] == 'a':
    prod *= 2
  elif s[i] == 'b':
    prod *= 3
  elif s[i] == 'c':
    prod *= 5

if prod == 2 * 3 * 5:
  print("Yes")
else:
  print("No")

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

Solution (Python):
import sys

def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    S = read_func().strip()
    if S[0] != S[1] and S[1] != S[2] and S[0] != S[2]:
        print 'Yes'
    else:
        print 'No'

if __name__ == '__main__':
    main()

Solution (Python):


if __name__ == "__main__":
    S = input()
    is_a = False
    is_b = False
    is_c = False

    for i in range(3):
        if S[i] == "a":
            is_a = True
            continue
        elif S[i] == "b":
            is_b = True
            continue
        elif S[i] == "c":
            is_c = True
            continue

    if is_a and is_b and is_c:
        print("Yes")
    else:
        print("No")

Solution (Python):
if __name__ == '__main__':
    S = input()
    if len(S) == 3 and "".join(sorted(S)) == "abc":
        print("Yes")
    else:
        print("No")

Solution (Python):
s = list(input())
a, b, c = 0, 0, 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):
from sys import stdin


def main():
    S = stdin.readline().rstrip()
    if 'a' in S and 'b' in S and 'c' in S:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

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

Solution (Python):
S = input()
flags = {'a': False, 'b': False, 'c': False}

for i in range(len(S)):
    flags[S[i]] = True
    
if flags['a'] and flags['b'] and flags['c']:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys

stdin = sys.stdin

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

s = ns()
a = ["a", "b", "c"]
f = 0
g = 0
h = 0
for i in s:
    if i == "a":
        f += 1
    if i == "b":
        g += 1
    if i == "c":
        h += 1

if f == 1 and g == 1 and h == 1:
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):
s = input()
A = {'a': 0, 'b': 0, 'c': 0}
for i in s:
    A[i] += 1
if A['a'] == A['b'] == A['c'] == 1:
    print('Yes')
else:
    print('No')

Solution (Python):
s = list(input())
d = {}
d["a"] =0
d["b"] =0
d["c"] = 0

for st in s:
    d[st] += 1

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

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