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



Sample input:
bac


Sample output:
Yes

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# 単語
keyword = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

else:
    print("No")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding: utf-8
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
# coding=utf-8

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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

target = "abc"

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

print("Yes")

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
#coding: utf-8
S = input()
t = set(S)
if len(t) == 3:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# coding: utf-8
#

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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'])

Submission status: Accepted

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

A.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
text = raw_input()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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");

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

s.sort()

s = ''.join(s)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
code = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
inputs = input()

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
#1. input
    s = input()

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

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



if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = sorted(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
# coding : utf-8

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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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()

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

S=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
#! /usr/bin/env python3

s = list(input())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input())

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
S_ary = list(raw_input())

S_ary.sort()

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

Submission status: Accepted

Solution code:
# your code goes here
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if (not "a" in s) or (not "b" in s) or (not "c" in s):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
from itertools import permutations

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
#-*- coding:utf-8 -*-

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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
list = ['abc', 'acb', 'bac', 'bca', 'cab', 'cba']
for i in range(6):
    if s == list[i]:
        print('Yes')
        exit()
print('No')

Submission status: Accepted

Solution code:
S = input()

checker = ["abc", "acb", "bac", "bca", "cab", "cba"]
if S in checker:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
A = input()
t = 0
if 'a' in A:
    if 'b' in A:
        if 'c' in A:
            print("Yes")
            t = 1
if t == 0:
    print("No")

Submission status: Accepted

Solution code:
S = raw_input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

a = set()
for i in s:
    a.add(i)

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

Submission status: Accepted

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