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 = 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 = set(list(input()))
if len(s) == 3:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

print(result)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = [s for s in input()]
cnt = 0
for i in S:
  if i=='a':
    cnt+=1
  if i=='b':
    cnt+=10
  if i=='c':
    cnt+=100
    

if cnt==111:
  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()
print("Yes" if 'a' in S and 'b' in S and 'c' in S else "No")

Submission status: Accepted

Solution code:
print(['No', 'Yes'][set(input()) == set('abc')])

Submission status: Accepted

Solution code:
S = str(input() )
if ('a' in S) == ('b' in S) == ('c' in S) == True: 
    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:
strlist = input()
strlist = list(strlist)

if strlist.count('a') == 0 or strlist.count('b') == 0 or strlist.count('c') == 0:
   print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#abc of ABC

#入力
S = list(input())

#計算
count = 0
if S.count('a'):
	count += 1
if S.count('b'):
	count += 1
if S.count('c'):
	count += 1

#出力
if count == 3:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
word = stdin.readline().rstrip()
print("Yes") if word.count("a") == 1 and word.count("b") == 1 and word.count("c") == 1 else print("No")

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = set(list(input()))
correct = {'a', 'b', 'c'}

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

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()
abc_list = set(S)
if abc_list == set("abc") :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
inp = raw_input()

c = set([i for i in inp])
if len(c) == 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()
a = ["a","b","c"]
b = 0
for i in a:
  if i in s:
    b+=1
if b == 3:
  print("Yes")
else :
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=set(list(input().strip()))
print("Yes" if len(a)==3 else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
d = list(input())
a = 0
b = 0
c = 0
for i in range(3):
  if d[i] == "a":
    a = 1
  if d[i] == "b":
    b = 1
  if d[i] == "c":
    c = 1
    
    
if a*b*c == 1:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s = list(input())

for c in list("abc"):
	if not c in s:
		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:
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:
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:
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 abc093a():
    s = input()
    return ["No", "Yes"][(("a" in s) + ("b" in s) + ("c" in s)) == 3]

print(abc093a())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = [x for x in input()]
s.sort()
print('Yes' if 'abc' == ''.join(s) else 'No')

Submission status: Accepted

Solution code:
s = raw_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:
s = input()

for i in 'abc':
    if i in s:
        continue
    else:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = sorted(input())
s = s[0]+s[1]+s[2]

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

Submission status: Accepted

Solution code:
s = input()
l = []
for i in s:
	l.append(i)
	l.sort()
print('Yes' if ''.join(l) == 'abc' else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
string = input()

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

Submission status: Accepted

Solution code:
#import numpy as np
#n = int(input())
#S = [int(i) for i in input().split()]
s = list(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:
abc = list(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 "".join(sorted(list(s))) == "abc":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = input()
a = 0
if x.count("a") == 1:
    a += 1
if x.count("b") == 1:
    a += 1
if a == 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
mojiretu = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# PROBLEM A
s = input()
letters = set(s)
perm_abc = len(letters) == 3 and all(c in letters for c in 'abc')
if perm_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:
print("Yes" if (sorted(list(input()))==["a","b","c"]) else "No")

Submission status: Accepted

Solution code:
# coding: utf-8
s=input()
print('Yes' if 'a' in s and 'b' in s and 'c' in s else 'No')

Submission status: Accepted

Solution code:
S = input()
ans = 0
for i in S:
    if i == "a":
        ans += 1
    elif i == "b":
        ans += 2
    elif i == "c":
        ans += 3
if ans == 6:
    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:
print("Yes" if "".join(sorted(list(input()))) == "abc" else "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(S.count("a")*S.count("b")*S.count("c")) == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()
if "a" in s:
    if "b" in s:
        if "c" in s:
            print("Yes")
if "a" not in s or "b" not in s or "c" not in s:
    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:

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

Submission status: Accepted

Solution code:
s = input()
a = ['abc', 'cba', 'acb', 'bca', 'cab', 'bac']
if s in a:
    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:
import itertools
S = input()
abclist = list(itertools.permutations(['a','b','c']))
flag=0
for i in range(len(abclist)):
    if S == ''.join(abclist[i]):
        print('Yes')
        flag=1
        
if flag==0:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
S = input()

S_list = list(S)
S_list.sort()

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

Submission status: Accepted

Solution code:
s = input()
r = 0

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: Accepted

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

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

Submission status: Accepted

Solution code:
str = input()
def check_str(str, ans):
    return str.find(ans)

if(check_str(str, "a") == -1):
    print("No")
elif(check_str(str, "b") == -1):
    print("No")
elif(check_str(str, "c") == -1):
    print("No")
else:
    print("Yes")

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
x = input()
a = b = c = 1
for i in range(3):
    if x[i] == 'a':
        a -= 1
    elif x[i] == 'b':
        b -= 1
    else:
        c -= 1
if a == 0 and b == 0 and c == 0: 
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if len(set((S[0], S[1], S[2]))) == 3:
    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 = input()
if 'a' in S and 'b' in S and 'c' in S :
	print ('Yes')
else:
  print ('No')

Submission status: Accepted

Solution code:
import sys
t = raw_input()
d = {}
d['a'] = 0
d['b'] = 0
d['c'] = 0
for a in t:
    d[a] += 1
for k,v in d.items():
    if v != 1:
        print("No")
        sys.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:
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: 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 str(S) and "b" in str(S) and "c" in str(S):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S=input()
if set(S)=={'a','b','c'} and len(S)==3:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

lst = [0,0,0]

for i in range(len(s)):
    if s[i]=="a":
        lst[0]=1
    if s[i]=="b":
        lst[1]=1
    if s[i]=="c":
        lst[2]=1
if lst[0]+lst[1]+lst[2]==3:
    print("Yes")
else: print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

# coding: utf-8

# In[25]:


s = input()


# In[29]:


dic = {'a': 0, 'b': 0, 'c': 0}


# In[30]:


for c in s:
    if c in dic:
        dic[c] += 1


# In[31]:


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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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:]

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

Submission status: Accepted

Solution code:
s = set(input())
a = set("abc")

if a == 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:
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:
a,b,c = 0,0,0
for i in input():
    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:
s=input()
if (s[0] != s[1] and s[1] != s[2] and s[0] != s[2]):
    print("Yes")
else: 
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
aa=[]
for i in range(len(a)):
    aa.append(a[i])
aa.sort()
b=""
for i in range(len(aa)):
    b+=aa[i]
if b=="abc":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()
ABC = 'abc'
ans = 'No'
for i in range(3):
	if(ABC[i] not in S): break
else: ans = 'Yes'
print(ans)

Submission status: Accepted

Solution code:
s = input()
a = ["a","b","c"]
from itertools import permutations
def solve(s):
    for i,j,k in permutations(a):
        if i+j+k ==s:
            return "Yes"
    return "No"
print(solve(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s_str = input()

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
S = input()
print(('No', 'Yes')[S.count("a") * S.count("b") * S.count("c") == 1])

Submission status: Accepted

Solution code:
a = input()

ans = ["a","b","c"]
counter = 0
for i in range(len(a)):
 for j in range(i+1,len(a)):
  if a[i] == a[j]:
   counter = counter +1
   break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
T = input()

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

Submission status: Accepted

Solution code:
s = 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: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

N = input()
N_list= list(N)

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


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

Submission status: Accepted

Solution code:
abc = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input()

if l == "abc":
    print("Yes")
elif l == "acb":
    print("Yes")
elif l == "bac":
    print("Yes")
elif l == "bca":
    print("Yes")
elif l == "cab":
    print("Yes")
elif l == "cba":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
flag = 'Yes'
S = input()
for char in ['a', 'b', 'c']:
    if not char in S:
        flag = 'No'
print(flag)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
s_list = list(s)
s_sort_list = sorted(s_list)
s_sort = ','.join(s_sort_list)
s_sort = s_sort.replace(',', '')
if s_sort == 'abc':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = input()
SS = set(S)
ES = set(list('abc'))

print('Yes' if SS & ES == ES else 'No')

Submission status: Accepted

Solution code:
S = input()
for c in ("abc"):
    if c in S:
        continue
    else:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
if __name__ == "__main__":
    s = list(input())
    if len(list(set(s))) == 3:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
print("Yes"*(sorted(input())==list("abc"))or"No")

Submission status: Accepted

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: Accepted

Solution code:
s = input()
if len(s) == 3 and set(s) == {'a', 'b', 'c'}:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def judge(s):
	wordlist = ["abc", "acb", "bac", "bca", "cab", "cba"]
	for i in range(0, 6):
		if s == wordlist[i]: return "Yes"
	return "No"

s = raw_input()

print judge(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#abc093a

s=raw_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 = list(input())
s.sort()
s = ''.join(s)

x = "Yes\n" if s == "abc" else "No\n"

print(x)

Submission status: Accepted

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

Submission status: Accepted

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'
    
print(mySort(S))

Submission status: Accepted

Solution code:
S = input()
print('Yes' if all(list(map(lambda x : x in S, ['a', 'b', 'c']))) else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

S1='abc'
S2='acb'
S3='bac'
S4='bca'
S5='cab'
S6='cba'
if S==S1:
    print ('Yes')
elif S==S2:
    print ('Yes')
elif S==S3:
    print ('Yes')
elif S==S4:
    print ('Yes')
elif S==S5:
    print ('Yes')
elif S==S6:
    print ('Yes')
else:
    print ('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=list(input())
n.sort()
moji="".join(n)
if moji=="abc":
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=list(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:
S = set(list(input()))
if len(S) == 3:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = sorted(input())
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())

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[2] != S[0]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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:
#!/bin/python
data = input()
 
if data.find('a') != -1 and data.find('b') != -1 and data.find('c') != -1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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