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: Wrong Answer

Solution code:
s=input()
l=['a','b','c']
flag=0
for x in s:
  if x not in l:
    flag=1
if flag:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
cnt = 0
for i in input():
    if i in 'abc':
        cnt += 1
if cnt == 3:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
print(len(set(input())))

Submission status: Wrong Answer

Solution code:
s = list(input())

print(("a" in s) & ("b" in s) & ("c" in s))

Submission status: Wrong Answer

Solution code:
s = input()
 
if not s.count("a") == 1:
  print("NO")
elif not s.count("b") == 1:
  print("NO")
elif not s.count("c") == 1:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
s = list(input())
    
if s[0] != s[1] and s[1] != s[2] and s[2] != s[0]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
s = list(input())

if s[0] == s[1] or s[1] == s[2] or s[2] == s[0]:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

Solution code:
str_i = input()

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = list(input())
str_list = ['abc','acb','bac','bca','cab','cba']
ans = 'No'
for l in str_list:
  if s == l:
    ans = 'Yes'
    break
print(ans)

Submission status: Wrong Answer

Solution code:
s = list(input())
l = set(s)
if len(l) == 1:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
s=input()
print("YES" if len(s)==len(set(s)) else "NO")

Submission status: Wrong Answer

Solution code:
s = input()

for w in s:
    if w not in "abc":
        print("No")
        exit()
print("Yes")

Submission status: Wrong Answer

Solution code:
S = input()
print(["YES","NO"][S.count("a")>=2 or S.count("b")>=2 or S.count("c")>=2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=input()
print(['No','Yes'][(x[0]in'abc')*(x[1]in'abc')*(x[2]in'abc')])

Submission status: Wrong Answer

Solution code:
s = input().rstrip()

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

Submission status: Wrong Answer

Solution code:
S = str(input())
L = {"a","b","c"}
if {S[0],S[1],S[2]} == L:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a=list(input());print("YNeos"[len(set(a))!=3])

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
s = input()
for i in "abc":
    if i not in s:
        break
else:
    print('Yes')

print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())
if S[0] != S[1] !=S[2]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
if input()=="abc" and "acb" and "bac" and "bca" and "cab" and "cba":
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()

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

Submission status: Wrong Answer

Solution code:
a=input()

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

Submission status: Wrong Answer

Solution code:
s = input()
ans = sorted(s)
if ans == "abc":
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = input()
s = sorted(s)
if s == "abc":
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s = input()
sorted(s)
if s == "abc":
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
s=input()
print('yes' if len(set(s)) == 3 else 'No')

Submission status: Wrong Answer

Solution code:
a = input()
if sorted(a) == "abc":
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
S = input()

if "a" in S and "b" in S and "c" in S:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
NUM_STR = 3

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

Submission status: Wrong Answer

Solution code:
S = raw_input()
NUM_STR = 3

def eval():
	for i in range(NUM_STR):
		if not S[i] in ['a', 'b', 'c']:
			return False
	return True

if eval():
	print "Yes"
else:
	print "No"

Submission status: Wrong Answer

Solution code:
S = raw_input()
NUM_STR = 3
for i in range(NUM_STR):
	if S[i] in ['a', 'b', 'c']:
		print "Yes"
	else:
		print "No"

Submission status: Wrong Answer

Solution code:
s=input()
#sl=["a","b","c"]
if s[0]!=s[1] and s[0]!=s[2] and s[2]!=s[2]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = sorted("".join(input()))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
if "abc" in a:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
if len(list(set(list(input()))))==3:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
s = input()
list = [0,0,0]
j = 1
for i in s:
    if i == 'a':
        list[0] = 1
    elif i == 'b':
        list[1] = 1
    elif i == 'c':
        list[2] = 1
for i in list:
    if i == 0:
        print("No")
        j = 0
if j != 0:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()

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

Submission status: Wrong Answer

Solution code:
S = input()
print("YES" if "".join(sorted(S)) == "abc" else "NO")

Submission status: Wrong Answer

Solution code:
#93a
s=set(input())
x=set(list('abc'))

print('Yes' if s-x==set() else 'No')

Submission status: Wrong Answer

Solution code:
#93a
s=set(input())
x=set(list('abc'))
print('Yes' if s-x==0 else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
S = S.replace("a", "").replace("b", "").replace("c", "")
print("Yes" if len(S) == 0 else "No")

Submission status: Wrong Answer

Solution code:
x=list(input())
#print(x)
y=sorted(x)
#print(sorted(x))
if y[0] == y[1]:
	print("No")
else:
	print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
if S[0]==S[1] or S[0]==S[2] or S[1]==S[2]:
    print('NO')
else:
    print('YES')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#coding utf-8
s=input()
if(s.find('a')==-1 | s.find('b')==-1 | s.find('c')==-1):
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
#coding utf-8
s=input()
if(s.find('a')!=-1 & s.find('b')!=-1 & s.find('c')!=-1):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
#coding utf-8
s=input()
if(s.find('a')!=-1 & s.find('b')!=-1 & s.find('c')!=-1):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
print len(set(raw_input())) == 3

Submission status: Wrong Answer

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

S = input("S:")
abc(S)

Submission status: Wrong Answer

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

S = input("S:")
abc(S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
a = ['a', 'b', 'c']
for i in a:
    if i not in S:
        print('No')
        exit()
    S = S.replace(i, '')
    if S == '':
        print('Yes')
        exit()

Submission status: Wrong Answer

Solution code:
S = input()
a = ['a', 'b', 'c']
for i in a:
    if i not in S:
        print('No')
        exit()
    S = S.replace(i, '')
    if S == '':
        print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = list(input())
if S.count("a") == S.count("b") == S.count("c") == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
S = list(input())
if S.count("a") == S.count("b") -- S.count("c") == 1:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

Solution code:
a = input()
b = sorted(a)
#for n in b:
#    print(n,end="")
c = b[0] + b[1] + b[2]
if "abc" == c:
    print("はい")
else:
    print("いいえ")

Submission status: Wrong Answer

Solution code:
S = input()
result = 'No'

if ('a' and 'b' and 'c') in S:
    result = 'Yes'

print(result)

Submission status: Wrong Answer

Solution code:
S = input()
result = 'No'

if 'a' and 'b' and 'c' in S:
    result = 'Yes'

print(result)

Submission status: Wrong Answer

Solution code:
s = input()
a = s.find('a')  # indexは1(2文字目)
b = s.find('b')  # indexは1(2文字目)
c = s.find('c')  # indexは1(2文字目)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = list(input().split())
if "a" in S and "b" in S and "c" in S:
	print("YES")
else:
  	print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
abc = list(input())

if ('a' in abc) and ('b' in abc) and ('c' in abc):
    print('YES')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
abc = list(input())

if ('a' in abc) and ('b' in abc) and ('c' in abc):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
mojiretu = input()

a = mojiretu.count("a")
b = mojiretu.count("b")
c = mojiretu.count("c")

if int(a) + int(b) + int(c)==3:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
S = input()
print("Yes" if S == ("bac" or "cba" or "acb") else "No" )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(["No","Yes"]["".join(input())=="abc"])

Submission status: Wrong Answer

Solution code:
s = input()
a = ['abc', 'cba', 'acb', 'bca', 'cba', 'bac']
if s in a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()
m = {}
flag = False
if len(s) != 3:
    flag = True
    print('No')
for c in s:
    if c not in m:
        m[c] = 1
    else:
        print('No')
        flag = True
if not flag:
    print('Yes')

Submission status: Wrong Answer

Solution code:
s = input()
m = {}
flag = False
for c in s:
    if c not in m:
        m[c] = 1
    else:
        print('No')
        flag = True
if not flag:
    print('Yes')

Submission status: Wrong Answer

Solution code:
s = input()
m = {}
flag = False
for c in s:
    if c not in m:
        m[c] = 1
    else:
        print('NO')
        flag = True
if not flag:
    print('Yes')

Submission status: Wrong Answer

Solution code:
s = input()
if set([s[0], s[1], s[2]]) == set(['a', 'b', 'c']):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
abc = ["abc"[i] for i in range(3)]
raws = input()
target=[raws[i] for i in range(3)]
tmp = list(filter(lambda x:x in target, abc))
if len(tmp) == 3:
     print("YES")
else:
     print("NO")

Submission status: Wrong Answer

Solution code:
S = input()
'''
S_list = list(S)
S_list.sort()
if S_list == ['a', 'b', 'C']:
    print('Yes')
else:
    print('No')
'''
if S == 'abc' or 'acb' or 'bac' or 'bca' or 'cab' or 'cba':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()

for c in s:
    if c == 'a':
        r = 1
    if c == 'b':
        r = 2
    if c == 'c':
        r = 4

if r == 7:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input()

if s.find('a') != -1 and s.find('b') != -1 and s.find('c') != -1:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**15
mod = 10**9+7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    s = [_ for _ in S()]
    s.sort
    if s == ['a', 'b', 'c']:
        return 'Yes'


    return 'No'


print(main())

Submission status: Wrong Answer

Solution code:
s=input()
flag = s.count('a')*s.count('b')*s.count('c')
if flag >=1:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
S = raw_input()
tmp = ['a','b','c']

for i in range(3):
    index = S.find(tmp[i])
    if index == -1: break
    S = S[:index]+S[index+1:]
    print S

if len(S) > 0:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
S = input()
# S = 'abc'
if ('abc' in 'a'):
    if(S.find('b')):
        if(S.find('c')):
            print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
print("Yes" if  ''.join(sorted(list(input())) )else "No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# 文字列の入力
a = input()

if ((a.count("a") + a.count("b") + a.count("c") ) == 3):
    print("Yes")
# 出力
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s_str = input()

check_list = ['a', 'b', 'c']
result_list = [[s == check for check in check_list] for s in s_str]
result = all([s1 or s2 or s3 for s1, s2, s3 in result_list])

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

Submission status: Wrong Answer

Solution code:
s_str = input()

check_list = ['a', 'b', 'c']

result_list = [[s == check for check in check_list] for s in s_str]
result = all([s1 or s2 or s3 for s1, s2, s3 in result_list])
print(result)

Submission status: Wrong Answer

Solution code:
s = str(input())

if s[0] != s[1]: 
    if s[0] != s[2]:
        if s[1] != s[2]:
            print("yes")
        else:
            print("no")
    else:
        print("no")
else:
    print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def arrabgeJudge(S):
    s = list(S)
    alterS = [int(s[0],16),int(s[1],16),int(s[2],16)]
    if sum(alterS) ==33:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
S = input()

def mySort(S):
    if 'a' not in S:
        return 'No'
    elif 'b' not in S:
        return 'No'
    elif 'c' not in S:
        return 'No'
    else:
        return 'Yes'
    
mySort(S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input().replace("abc","").replace("acb","").replace("bac","").replace("bca","").replace("cab","").replace("cba","")
if s:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] != S[1] != S[2]:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
S = input()
if S[0] != S[1] != S[2]:
     print('yes')
else:
      print('no')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
if S ==  'abc':
    print('Yes')
if S == 'acb':
    print('Yes')
if S == 'bac':
    print('Yes')
if S == 'bca':
    print('Yes')
if S == 'cab':
    print('Yes')
if S == 'cba':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
S = input()
if S == 'abc':
    print('Yes')
if S == 'acb':
    print('Yes')
if S == 'bac':
    print('Yes')
if S == 'cab':
    print('Yes')
if S == 'bca':
    print('Yes')
if S == 'cba':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
S = input()
if S ==  'abc':
    print('Yes')
if S == 'acb':
    print('Yes')
if S == 'bac':
    print('Yes')
if S == 'cab':
    print('Yes')
if S == 'bca':
    print('Yes')
if S == 'cba':
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s = input()
k=0
for i in list(s):
	if i == 'a':
		k+=1
	elif i == 'b':
		k+=1
	elif i == 'c':
		k+=1
	else:
		k=0
if k == 0:
	print("No")
else:
	print("Yes")

Submission status: Wrong Answer

Solution code:
S = input()

target = "abc"

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

print("Yes")

Submission status: Wrong Answer

Solution code:
S = list(i for i in input().split())
"""
S = ["c", "b", "a"]
"""
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")

Submission status: Wrong Answer

Solution code:
S = list(i for i in input().split())
"""
S = ["c", "b", "a"]
"""
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")

Submission status: Wrong Answer

Solution code:
s = input()
k=0
for i in s:
	if i == "a":
		k+=1
	elif i == "b":
		k+=1
	elif i == "c":
		k+=1
	else:
		k=0
if k == 0:
	print("No")
else:
	print("Yes")

Submission status: Wrong Answer

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

print(set1)

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

Submission status: Wrong Answer

Solution code:
a = "baa"
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: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
S = map(int,input().split())
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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

Submission status: Wrong Answer

Solution code:
import itertools
S = input()
s1 = []
s1.append(S[0])
s1.append(S[1])
s1.append(S[2])
if [('a', 'b', 'c')] == list(itertools.combinations(s1,3)):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
inp = input()
if 'a' and 'b' and 'c' in [inp[0],inp[1],inp[2]]: print('Yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
def main():
    a = input()
    if 'a' in a and 'b' in a and 'c' in a:
        print("yes")
    else:
        print("no")

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Time Limit Exceeded

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__':
    while True:
        try:
            main(input().strip())
        except EOFError:
            pass

Submission status: Accepted

Solution code:
s = set(input())

if len(s) == 3:
    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 'a' in s and 'b' in s and 'c' in s:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
moji = list(map(str,input().strip()))
print(("No","Yes")[len(set(moji))==3])

Submission status: Accepted

Solution code:

S = str(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 ('a' in s) and ('b' in s) and ('c' in s):
   print('Yes')
else:
   print('No')

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
S = len(set(input()))
print("Yes") if S==3 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:
def atc_093a(input_value):
    try:
        input_value.index("a")
        input_value.index("b")
        input_value.index("c")
        return "Yes"
    except ValueError:
        return "No"

input_value = input()
print(atc_093a(input_value))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
'''
問題：
    a,b,c からなる長さ 3 の文字列 S が与えられます。
    S を abc を並び替えて作ることができるかどうか判定してください。
'''
'''
制約：
    |S|=3
    S は a,b,c からなる
'''

def abc093a(input: str) -> str:
    str_list = ["abc", "acb", "bac", "bca", "cab", "cba"]

    if input not in str_list:
        return "No"
    else:
        return "Yes"

s = str(input())
print(abc093a(s))

Submission status: Accepted

Solution code:
li = list(input())

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

Submission status: Accepted

Solution code:
s=str(input())

if ord(s[0])+ord(s[1])+ord(s[2])==ord('a')+ord('b')+ord('c'):
    ans="Yes"
else:
    ans="No"
print(ans)

Submission status: Accepted

Solution code:
S = 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:
s=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:
s = list(input())
s.sort()
#print(s)
if s == ["a","b","c"]:
    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:
s = sorted(input())

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

Submission status: Accepted

Solution code:
# 昇順に並び替えてabcになったらYes

S = list(input())

S_ascending_order = ''.join(sorted(S))
# print(S_ascending_order)

if 'abc' == S_ascending_order:
    print('Yes')
else:
    print('No')