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

Submission status: Accepted

Solution code:
print('Yes' if ''.join(sorted(input().strip())) == 'abc' else '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 = set(input())

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

Submission status: Accepted

Solution code:
S = str(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 len(list(set(s))) == 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.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_cnt = 0
b_cnt = 0
c_cnt = 0

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=str(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 len(set(input()))==3 else 'No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
S =list(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()
s = list(s)
s.sort()
ans = list("abc")
if (s == ans):
  print("Yes")
else :
  print("No")

Submission status: Accepted

Solution code:
s = set(input())
print('Yes' if len(s)==3 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()
print("No" if s[0] == s[1] or s[1] == s[2] or s[2] == s[0] else "Yes")

Submission status: Accepted

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

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 len(set(input()))==3 else"No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

s.sort()
print("Yes" if "".join(s) == "abc" else "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:


def main():

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

if __name__== "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
from fractions import gcd
# import queue
# from collections import Counter
# from itertools import accumulate
# from functools import reduce

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

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

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

big_prime = 1000000007

"""
# 標準入力取得
## 文字列
 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())

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


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

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from statistics import *
stdin = sys.stdin

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
print("Yes" if len(set((input()))) == 3 else "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:
A=input()
A=list(A)
if A[0]!=A[1] and A[1]!=A[2] and A[2]!=A[0]:
    print("Yes")
else:
    print("No")

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:
def resolve():
    s = input()
    ans = "Yes" if all([True if c in s else False for c in ["a", "b", "c"]]) else "No"
    print(ans)


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
S = input()
lst = list(S)
lst.sort()
S = "".join(lst)
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:
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()
print("Yes" if "a" in S and "b" in S and "c" in S else "No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

    return 'Yes'


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
s = [i for i in S]
s = sorted(s)
a = "".join(s)
if a == "abc":
  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:
        return "Yes"
    return "No"

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()
if set(S) == {"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()
print('Yes' if ''.join(sorted(S))=='abc' else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
#A-abc of ABC(093)
S=str(input())
S=sorted(S)
if S==["a","b","c"]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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


if __name__ == "__main__":
    test()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
#93

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
d = {}
for i in range(len(s)):
    if s[i] not in d:
        d[s[i]] = 1
print("Yes" if len(d) == 3 else "No")

Submission status: Accepted

Solution code:
s1, s2, s3 = input()
li = [s1, s2, s3]
li.sort()
if li == ["a", "b", "c"]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = list(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()
a = s.count('a')
b = s.count('b')
c = s.count('c')
if (a*b*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()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(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.count('a') == S.count('b') == S.count('c'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = input()
if x.count('a') > 0 and x.count('b') > 0 and x.count('c') > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a=input()
ac,bc,cc=0,0,0
for i in range(3):
    if a[i]=='a':
        ac+=1
    if a[i]=='b':
        bc+=1
    if a[i]=='c':
        cc+=1
if ac==1 and bc==1 and cc==1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = str(input())
a = {"a","b","c"}
if set(s) == a:
  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 = 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 = input()
print("Yes" if "a" in S and "b" in S and "c" in S else "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()
S="".join(sorted(list(S)))
if S == '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:
moji = list(input())
moji.sort()
m = ''.join(moji) 
if m == '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:
s=str(input())
new_s =sorted(s)
if new_s == ['a','b','c']:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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 sorted(list(input()))==["a","b","c"]else"No")

Submission status: Accepted

Solution code:
import sys
 
s = [0,0,0]
t = input()
for i in t:
  s[ord(i)-97]+=1
for i in s:
  if(i!=1):
    print('No')
    sys.exit()
print('Yes')

Submission status: Accepted

Solution code:
S = sorted(input())

if "".join(S)=="abc":
  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()
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:
import sys

s = [0,0,0]
t = input()
for i in t:
  s[ord(i)-97]+=1
for i in s:
  if(i!=1):
    print('No')
    sys.exit()
print('Yes')

Submission status: Accepted

Solution code:
string=input()
list=["a","b","c"]

list.remove(string[0])
try:
  list.remove(string[1])
  try:
    list.remove(string[2])
    print("Yes")
  except:
    print("No")
except:
  print("No")

Submission status: Accepted

Solution code:
import sys

s = [0,0,0]
t = input()
for i in t:
  s[ord(i)-97]+=1
for i in s:
  if(i!=1):
    print('No')
    sys.exit()
print('Yes')

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

#+++++


def main():
	s = input()
	#a ='Yes' if ''.join(sorted(s)) == 'abc' else 'No'
	for c in 'abc':
		if c not in s:
			print('No')
			return 
	print('Yes')
	
#+++++

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
	else:
		input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

Solution code:
a = [c for c in input()]
a.sort()
a = ''.join(a)
print('Yes' if a == 'abc' 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 = 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()
st = set()

for i in s:
    st.add(i)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(input())
a.sort()
print("Yes" if a[0] == "a" and a[1] == "b" and a[2] == "c" else "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:
print('YNeos'[set(map(str,input()))!={'a','b','c'}::2])

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    s = S()
    s.sort()
    if s == ["a", "b", "c"]:
        print("Yes")
    else:
        print("No")
    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

# Sを abc を並び替えて作ることができるなら Yes を、そうでないなら No を出力せよ。

S = input()

# print(S)

# print(S.find('a') >= 0)
# print(S.find('b') >= 0)
# print(S.find('c') >= 0)

# print('a' in S)
# print('b' in S)
# print('c' in S)

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 {c for c in input()} == {"a", "b", "c"} else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
b = [a[i] for i in range(len(a))]
b.sort()
if b[0] == "a" and b[1] == "b" and b[2] == "c":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import numpy as np
import statistics
from statistics import mean, median,variance,stdev
import math

def main():
	S = input()
	
	ans = [-1 for _ in range(3)]
	
	for i in range(3):
		if S[i] == "a":
			ans[0] = 1
		elif S[i] == "b":
			ans[1] = 1
		elif S[i] == "c":
			ans[2] = 1
	
	if ans[0] == ans[1] == ans[2] == 1:
		print("Yes")
	else:
		print("No")
			
	
if __name__ == "__main__":
	main()

Submission status: Accepted

Solution code:
wordlist = ['abc', 'acb', 'bac', 'bca', 'cab', 'cba']
S = input()
if S in wordlist:
	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:
#!/usr/bin/env python3
#ABC93 A

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
d = {}
for s in S:
    d[s] = True

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

Submission status: Accepted

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

Submission status: Accepted

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

# input
S = input()

# solve
ans = "Yes" if S.count('a') == 1 and S.count('b') == 1 and S.count('c') == 1 else "No"

# output
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
b = sorted(a)

if "".join(b) == "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()
flag=0
if s == "abc":
  flag=1
elif s == "acb":
  flag=1
elif s == "bac":
  flag=1
elif s == "bca":
  flag=1
elif s == "cab":
  flag=1
elif s == "cba":
  flag=1
  
if flag:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    s = input()

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

Submission status: Accepted

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

resolve()

Submission status: Accepted

Solution code:
#93
S = input()
ans = (S.count("a")==1) and (S.count("c")==1) and (S.count("b")==1)
if ans:
    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:
a=input()
print('Yes' if all(a.count(t)>0 for t in 'abc') else 'No')

Submission status: Accepted

Solution code:
S = input()
result = 0
for x in ['a','b','c']:
  if x in S:
    result+=1
print('Yes' if result==3 else '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()
a = s.count("a")
b = s.count("b")

print("Yes") if (a==1 and b==1) 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()
print('Yes' if s.count('a') and s.count('b') and s.count('c') else '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")