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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
S = input()
C = ['a', 'b', 'c']
ans = 'Yes' if all(x in S for x in C) else 'No'

print(ans)

Submission status: Accepted

Solution code:
s = input()

l = list(s)
l.sort()
if (l == ["a", "b", "c"]):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
ss=input()

d={"a":0,"b":0,"c":0}

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

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

Submission status: Accepted

Solution code:
def abc_of_ABC(s):

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

def main():
    s = str(input())
    print(abc_of_ABC(s))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = input()

if (s == 'abc' or s == 'acb' or s == 'bac' 
or s == 'bca' or s == 'cba' or s == 'cab'):
    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:
print("Yes" if ''.join(sorted(input())) == "abc" else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
s = sorted([s[0], s[1], s[2]])
s = ''.join(s)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# | Its_Rashid | #
a = input()
a = ''.join(sorted(a))
print('Yes' if a == 'abc' 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 = sorted(input())
print("Yes" if s==["a", "b", "c"] else "No")

Submission status: Accepted

Solution code:
S=input()
t=[a for a in S]
u=sorted(t)
if u[0]=='a' and u[1]=='b' and u[2]=='c':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
Ss = input()

if set(Ss) == set('abc'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = list(input())
s.sort()
if 'abc' == ''.join(s):
    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:
#abc093 a
s=input()
if "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[1]!=a[2] and a[2]!=a[0] and a[0]!=a[1]:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#pypyは内包表記使わない
def main():
    import sys
    #input = sys.stdin.readline
    sys.setrecursionlimit(10000000)
    from collections import Counter, deque
    #from collections import defaultdict
    from itertools import combinations, permutations
    #from itertools import accumulate, product
    from bisect import bisect_left,bisect_right
    from math import floor, ceil
    #from operator import itemgetter

    #mod = 1000000007

    S = input().rstrip()
    if len(set(S))==3:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# Author: cr4zjh0bp
# Created: Thu Mar 12 07:58:51 UTC 2020
import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni = lambda: int(ns())
nin = lambda y: [ni() for _ in range(y)]
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda y: [na() for _ in range(y)]
nf = lambda: float(ns())
nfn = lambda y: [nf() for _ in range(y)]
nfa = lambda: list(map(float, stdin.readline().split()))
nfan = lambda y: [nfa() for _ in range(y)]
ns = lambda: stdin.readline().rstrip()
nsn = lambda y: [ns() for _ in range(y)]
ncl = lambda y: [list(ns()) for _ in range(y)]
nas = lambda: stdin.readline().split()

from collections import Counter

S = ns()
N = len(S)

c = Counter(S)
print("Yes" if len(c) == N else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
s.sort()
s = s[0]+s[1]+s[2]


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

Submission status: Accepted

Solution code:
s = input()
if len(set(s))==3:
  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:
# A - abc of ABC
s=input()
s1=set(list(s))
if len(s1)==3:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=sorted(input())
res = "".join(s)
print("Yes" if res == "abc" else "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 = list(input())
if len(set(s)) == 3:
    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:
print("Yes" if len(set(input()))==3 else "No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if all(i in s for i in 'abc'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
abc = ['a', 'b', 'c']
s.sort()
if abc == s:
    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:
# coding: utf-8
# Your code here!
S = list(input())
#print(list(set(S)))
if sorted(list(set(S))) == ['a','b','c']:
    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 print('No')

Submission status: Accepted

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

Submission status: Accepted

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

s_set=set(s)
print("Yes" if len(s_set)==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()

answer = "Yes"
for c in "abc":
  if c not in s:
    answer = "No"
print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=raw_input()
sa=0
sb=0
sc=0
for i in range(len(s)):
  if s[i]=="a":
    sa+=1
  if s[i]=="b":
    sb+=1
  if s[i]=="c":
    sc+=1
if sa==1 and sb==1 and sc==1:
    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())
S = set(s)
if len(S) == 3:
    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()

a = 0
b = 0
c = 0

for i in range(3):
	if (a == 0 and S[i] == 'a'):
		a = 1
	elif (b == 0 and S[i] == 'b'):
		b = 1
	elif (c == 0 and S[i] == 'c'):
		c = 1

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

Submission status: Accepted

Solution code:
s = set(input())
if len(s) == 3:
    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:
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 = 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 = set(input())

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

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()
count = 0
if "a" in S:
  count = count + 1

if "b" in S:
  count = count + 1

if "c" in S:
  count = count + 1

if count==3:
  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:
def readints():
    return list(map(int, input().split()))


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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
print("Yes" if len(set(s))==3 else "No") #if the number of the element is 3(abc) yes 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:
S = sorted(input())
if S == sorted('abc'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

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()
if set('abc')==set(s): print('Yes')
else: print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if len(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 = list(input())
a = ['a','b','c']
s.sort()
if s == a:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

_ = ''.join(sorted(S))
if _ == 'abc':
  ans = 'Yes'
else:
  ans = 'No'

print(ans)

Submission status: Accepted

Solution code:
s = set(input())

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

Submission status: Accepted

Solution code:
s = input()

l = []
for x in s:
  l.append(x)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 入力　文字列1つ
S = input()

listS = list(S)
listS.sort()

correct = ["a","b","c"]

if listS == correct :
    print("Yes")
else :
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

S = list(input())

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

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

Submission status: Accepted

Solution code:
S = str(input())
S1 = ["a", "b", "c"]
if S.count(S1[0]) == 1 and S.count(S1[1]) == 1 and S.count(S1[2]) == 1:
    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:
print('Yes' if sorted(input())==list('abc') else '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:
inp = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

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


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
s = input()
list = [s[0], s[1], s[2]]
if list.count("a") > 0 and list.count("b") > 0 and list.count("c") > 0: print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
S = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
x = dict()
ans = 0
for i in range(len(S)):
    x[S[i]] = 1
for idx in x:
    ans += x[idx]
if ans == 3:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
print("YNeos"[set(input())!=set("abc")::2])

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:
# import numpy as np
# import scipy as sp
# print(a,b,c,sep="") # 半角スペースなしで出力(abc)
# n=int(input())  #数値入力 「N」だけの入力のとき
# a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
# c=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
# s=[list(map(str,list(input()))) for i in range(h)]  # 文字列の二次元配列入力
# s = [list(map(int, input().split())) for i in range(n)] # 数値の二次元配列入力
# a = b[:], a = [x[:] for x in b] # deepcopy
# chr(ord('a') + 1) # chrのインクリメント
# s.sort(key=lambda x: x[1], reverse=False) # 2番目の要素で昇順にソート（Trueなら降順）
#

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(str(input()))
a = 0
b = 0
c = 0
for i in range(len(s)):
    if s[i] == 'a':
        a += 1
    elif s[i] == 'b':
        b += 1
    elif s[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()
l=list(S)
l.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

else:
    g = 'No'
print('{}'.format(g))

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

Submission status: Accepted

Solution code:
S = list(map(str, input()))
ctr = [0 for _ in range(3)]

for s in S:
  if s == "a":
    ctr[0] = 1
  elif s == "b":
    ctr[1] = 1
  else:
    ctr[2] = 1
    
if sum(ctr) == 3:
  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:
#!/usr/bin/env python3
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
s = input()
print("Yes" if s.count("a")*s.count("b")*s.count("c") == 1 else "No")

Submission status: Accepted

Solution code:
line = input()

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

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = readline().decode('utf8').rstrip()
print('Yes' if set('abc') == set(S) else 'No')

Submission status: Accepted

Solution code:
s = [i for i in str(input())]
print("Yes" if sorted(s) == ["a","b","c"] 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:
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

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

Submission status: Accepted

Solution code:
s=sorted(input())
ans="abc"
flag=1
for i in range(3):
  if s[i] != ans[i]:
    print("No")
    flag=0
    break

if flag==1:
  print("Yes")

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    from sys import stdin, setrecursionlimit
    setrecursionlimit(10**6)
    r = stdin.readline()[:-1]
    #n = int(stdin.readline()[:-1])   
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]

    #res = 0
    #a, b, c = map(int, r.split())
    res = sorted(list(r))
    if "".join(res) == 'abc':
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:


import numpy as np

s=sorted(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if all(S.count(l)==1 for l in "abc"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import math
import queue
import bisect
import heapq
import time
import itertools

mod = int(1e9+7)

def swap(a,b):
    return (b,a)

def my_round(a,dig=0):
    p = 10 ** dig
    return (a * p * 2 + 1) // 2 / p

def gcd(a,b): #最大公約数
    if (a<b):
        a,b = swap(a,b)
    if (b==0):
        return a
    else:
        return gcd(b,a%b)

def lcm(a,b): #最小公倍数
    return a/gcd(a,b)*b

def divisors(a): # 約数列挙
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): #素数判定
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): #素数列挙
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

def prime_fact(a): #素因数分解
    sqrt = math.sqrt(a)
    res = []
    i = 2
    if is_prime(a):
        res.append(a)
    else:
        while a!=1:
            while a%i==0:
                res.append(i)
                a //= i
            i += 1
    return res

def main():
    s = input()
    t = sorted(s)
    if ''.join(t) == 'abc':
        print('Yes')
    else:
        print('No')
    return

if __name__=='__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
li = [a for a in s]
li.sort()
t = ''.join(li)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
alp = input()

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

Submission status: Accepted

Solution code:
from collections import Counter
c = Counter(input())
print('Yes' if 'a' in c and 'b' in c and 'c' in c else 'No')

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
lst1 = list(input())
if len(lst1) != 3:
    print("No")
    exit()
for i in ["a","b","c"]:
    if not i in lst1:
        print("No")
        exit()
print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
na = 0
nb = 0
nc = 0

for c in s:
  if c == 'a': na += 1
  if c == 'b': nb += 1
  if c == 'c': nc += 1

if na == nb == nc:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=sorted(input())
abc='abc'
count=0
for i in range(3):
  if a[i]==abc[i]:
    count+=1
if count == 3:print('Yes')
else:print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
s=input().strip()
a=[]
for i in range(3):
    a.append(s[i])
a.sort()
if a[0]=="a" and a[1]=="b" and a[2]=="c":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
S = list(input().strip())
count = 0
for i in range(3):
    if S[i%3] != S[(i+1)%3]:
        count += 1
if count == 3:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = list(input())
if s.count('a') == s.count('b') == s.count('c'):
  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()
s_list = [s[0], s[1], s[2]]
if 'a' in s_list and 'b' in s_list and 'c' in s_list:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
import collections
S = list(input())
c = collections.Counter(S)
if c["a"] == 1 and c["b"] == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s=list(input())
cnt_a=s.count('a')
cnt_b=s.count('b')
cnt_c=s.count('c')
if cnt_a==cnt_b==cnt_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()
S = sorted(S)

if S ==  list("abc"):
    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:
s = list(input())

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

Submission status: Accepted

Solution code:
s = list(input())
a = sorted(s, key=lambda x: x[0], reverse=False)
k = (a[0]=='a') and (a[1] == 'b') and (a[2] == 'c')
print('Yes' if k else 'No')