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:
n = input()
a = 0
b = 0
c = 0

for i in n:
	if i == "a":
		a += 1
	elif i == "b":
		b += 1
	elif 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()
x = 0
y = 0
z = 0
for i in a:
        if i == "a":
                x += 1
        elif i == "b":
                y += 1
        else:
                z += 1
if x == 1 and y == 1 and z == 1:
        print("Yes")
else:
        print("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 = input()

if sorted(S) == sorted("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[0]==s[2]:
  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 = list(input())

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

Submission status: Accepted

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

    i = 1
    for l in s:
        if l == "a":
            i *= 2
        elif l == "b":
            i *= 3
        elif l == "c":
            i *= 5

    if i == 30:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

S=list(S)

if(S[0]=='a'):
    if((S[1]=='b' and S[2]=='c') or (S[2]=='b' and S[1]=='c') ):
        print("Yes")
    else:
        print("No")
elif(S[0]=='b'):
    if((S[1]=='a' and S[2]=='c') or (S[2]=='a' and S[1]=='c') ):
        print("Yes")
    else:
        print("No")
elif(S[0]=='c'):
    if((S[1]=='a' and S[2]=='b') or (S[2]=='a' and S[1]=='b') ):
        print("Yes")
    else:
        print("No")
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
# Your code here!

n = input()

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

Submission status: Accepted

Solution code:
import numpy as np
S = input()

a = False
b = False
c = False

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

Submission status: Accepted

Solution code:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(1000000)


# Debug output
def chkprint(*args):
    names = {
        id(v): k
        for k, v in inspect.currentframe().f_back.f_locals.items()
    }
    print(', '.join(
        names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))


# Binary converter
def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]


def gcd(n, m):
    if n % m == 0:
        return m
    else:
        return gcd(m, n % m)


def gcd_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = gcd(v, L[i])

    return v


def lcm(n, m):
    return (n * m) // gcd(n, m)


def lcm_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = lcm(v, L[i])

    return v


# Width First Search (+ Distance)
def wfs_d(D, N, K):
    """
    D: 隣接行列(距離付き)
    N: ノード数
    K: 始点ノード
    """

    dfk = [-1] * (N + 1)
    dfk[K] = 0

    cps = [(K, 0)]
    r = [False] * (N + 1)
    r[K] = True
    while len(cps) != 0:
        n_cps = []
        for cp, cd in cps:
            for i, dfcp in enumerate(D[cp]):
                if dfcp != -1 and not r[i]:
                    dfk[i] = cd + dfcp
                    n_cps.append((i, cd + dfcp))
                    r[i] = True

        cps = n_cps[:]

    return dfk


# Depth First Search (+Distance)
def dfs_d(v, pre, dist):
    """
    v:  現在のノード
    pre: １つ前のノード
    dist: 現在の距離

    以下は別途用意する
    D: 隣接リスト(行列ではない)
    D_dfs_d: dfs_d関数で用いる，始点ノードから見た距離リスト
    """

    global D
    global D_dfs_d

    D_dfs_d[v] = dist

    for next_v, d in D[v]:
        if next_v != pre:
            dfs_d(next_v, v, dist + d)

    return


def sigma(N):
    ans = 0
    for i in range(1, N + 1):
        ans += i
    return ans


def comb(n, r):
    if n - r < r: r = n - r
    if r == 0: return 1
    if r == 1: return n

    numerator = [n - r + k + 1 for k in range(r)]
    denominator = [k + 1 for k in range(r)]

    for p in range(2, r + 1):
        pivot = denominator[p - 1]
        if pivot > 1:
            offset = (n - r) % p
            for k in range(p - 1, r, p):
                numerator[k - offset] /= pivot
                denominator[k] /= pivot

    result = 1
    for k in range(r):
        if numerator[k] > 1:
            result *= int(numerator[k])

    return result

def bisearch(L, target):
    low = 0
    high = len(L) - 1
    
    while low <= high:
        mid = (low + high) // 2
        guess = L[mid]
        if guess == target:
            return True
        elif guess < target:
            low = mid + 1
        elif guess > target:
            high = mid - 1
    if guess != target:
        return False

# --------------------------------------------

dp = None


def main():
    S = input()

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


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

a = s.find("a")
b = s.find("b")
c = s.find("c")
if (a >= 0 and b >= 0 and c >= 0) and a+b+c == 3:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s=list(input());print("YNeos"[len(set(s))<3::2])

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

Submission status: Accepted

Solution code:
s = input()
t = list(s)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
s2 = list('abc')
a = set(s) & set(s2)
print('Yes') if len(a)==3 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:
if sorted(input())==list("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 = input()
if S == 'abc' or S == 'acb' or S == 'bac' or S =='bca' or S == 'cab' or S == 'cba':
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
s=input()
ct=[0, 0, 0]
for c in s:
  ct[ord(c)-ord('a')]+=1
if(ct[0]==1 and ct[1]==1):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
NUM_STR = 3

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

Submission status: Accepted

Solution code:
import sys

words = list(raw_input().strip())
key = ['a', 'b', 'c']

if sorted(words) == key:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
i = input()

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

Submission status: Accepted

Solution code:
s=input()
#sl=["a","b","c"]
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 = raw_input()


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

Submission status: Accepted

Solution code:
from collections import Counter

print('Yes' if dict(Counter(input())) == {'a': 1, 'b': 1, 'c': 1} else 'No')

Submission status: Accepted

Solution code:
S = raw_input()
l = ['abc', 'acb', 'bac', 'bca','cab','cba']
if S in l:
  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:
print('YNeos'[len(set(input()))!=3::2])

Submission status: Accepted

Solution code:
abc = list(input())
abc.sort()

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

Submission status: Accepted

Solution code:
S = input()
if S.count('a') and S.count('b') and S.count('c'):
    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:
s = input()
abc=['a','b','c']


for i in range(len(s)):
  if s[i] in abc:
    abc.remove(s[i])

if len(abc) == 0:
  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:
def a():return "Yes" if "".join(sorted(list(input())))=="abc" else "No"
print(a())

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s = list(input())

s = sorted(s)

s = ''.join(s)

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
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 s=={'a','b','c'}:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8
print(["No","Yes"][len(set(input()))==3])

Submission status: Accepted

Solution code:
#coding: utf-8
S = list(input())
print(["No","Yes"]["".join(sorted(S))=="abc"])

Submission status: Accepted

Solution code:
l = sorted([i for i in input()])
print(["No", "Yes"]["".join(l) == "abc"])

Submission status: Accepted

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

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 = list(input())
s.sort()
abcL = ["a", "b", "c"]

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

Submission status: Accepted

Solution code:
S = input()
if all(x in S for x in ("a", "b", "c")):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
l = sorted([i for i in input()])
print("Yes" if "".join(l) == "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")==1 and s.count("b")==1 and s.count("c")==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dic={}
for x in input():
    dic[x]=1
if sum(dic.values())==3:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
Input = sys.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()

l = []
l.append(s[0])
l.append(s[1])
l.append(s[2])

l.sort()

t = ''.join(l)

if t == "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:
str = str(input())
a = str.count("a")
b = str.count("b")
c = str.count("c")
if [a,b,c] == [1,1,1]:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python
import math


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

Submission status: Accepted

Solution code:
s = input()
s = s.replace('a','',1)
s = s.replace('b','',1)
s = s.replace('c','',1)
if s == "":
    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 = list(input())
if len(S) == len(set(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()
ans = "No"

if len(S) == 3:
    if "a" in S:
        if "b" in S:
            if "c" in S:
                ans = "Yes"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

if 'a' in S and 'b' in S and 'c' in S and len(S) == 3:
    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:
s = input()
ans = "No"
if s.count("a")==1 and s.count("b")==1 and s.count("c")==1:
    ans = "Yes"
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:
#93a
s=set(input())
x=set(list('abc'))
print('Yes' if s==x else 'No')

Submission status: Accepted

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


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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S =str(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:
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()
li = []

for i in range(len(S)):
  li.append(S[i])

if sorted(li) == ['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 = 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 S.count("a") == S.count("b") == S.count("c") :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/python3

from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def main():
    S = "".join(list(sorted(input())))
    if S == "abc":
        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:
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 = 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:
if sorted(input()) == ["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:
if set(input()) == set('abc'):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(10000)

# Debug output


def chkprint(*args):
    names = {id(v): k for k, v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg), '???')+' = '+repr(arg) for arg in args))

# Binary converter


def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]

# --------------------------------------------


dp = None


def main():
    S = set(input().split()[0])

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


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=list(input())
#print(x)
y=sorted(x)
#print(sorted(x))
if y[0] == y[1] or y[1] == y[2]:
	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()
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()
if(s.count("a")*s.count("b")*s.count("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(list(S))) == 'abc' else 'No')

Submission status: Accepted

Solution code:
import itertools
l=["".join(i) for i in itertools.permutations("abc")]
if input() in l:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s = input()

print("Yes" if all([c in s for c in "abc"]) else "No")

Submission status: Accepted

Solution code:
S = input()

A = S.count("a")
B = S.count("b")
C = S.count("c")

if (A == 1) & (B == 1) & (C == 1):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s = input()

a = 0
b = 0
c = 0
for char in s:
    if char == 'a':
        a = 1
    if char == 'b':
        b = 1
    if char == 'c':
        c = 1
if a * b * c == 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sort = sorted(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
#coding utf-8
s=input()
s1=[s[0],s[1],s[2]]
s1.sort()
s1=s1[0]+s1[1]+s1[2]
if(s1!='abc'):
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
sort_s = ''
for _ in sorted(s):
    sort_s += _
if sort_s == 'abc':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = input()
res = s.count('a')==1
res += s.count('b')==1
res += s.count('c')==1
if res==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==1 and b==1 and c==1:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

S = input()
abc(S)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# your code goes here
li = list(input())	
li.sort()

if li == ['a','b','c']:
	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:
from collections import Counter
S = Counter(input())
if S['a'] >= 1 and S['b'] >= 1 and S['c'] >= 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
X=input()
A=X[0]
B=X[1]
C=X[2]
if A!=B and B!=C and C!=A:
    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("")
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 = ["a","b","c"]

n = input()

lis = sorted(n)

if s == lis:
    print("Yes")

elif s != lis:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input())

S.sort()

S2=''.join(S)

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

Submission status: Accepted

Solution code:
S=input()
if S=='abc'or S=='cab' or S=='bca' or S=='bac'or S=='acb' or S=='cba':
    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:
s=input()
if set(s)=={"a", "b", "c"}:
  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:
a = list(input())
print("Yes" if "".join(sorted(a)) == "abc" else "No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

S = []
for w in s:
    S.append(w)

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

# print(l)

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

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = list(input())

AAA = 0
BBB = 0
CCC = 0

for i in range(3):
    if S[i] == "a":
        AAA = 1
    if S[i] == "b":
        BBB = 1
    if S[i] == "c":
        CCC = 1
else:
    if AAA == 1 and BBB == 1 and CCC == 1:
        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 and len(list(s)) == 3 else "No")

Submission status: Accepted

Solution code:
S = input()
a = ['a', 'b', 'c']
for i in a:
    if i not in S:
        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:
S = input()
#S = ''.join(sorted(list(S)))
if 'a' in S and 'b' in S and 'c' in S:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
if set(s) == set('abc'):
    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()
n=int(S.count('a'))
m=int(S.count('b'))
if n==1 and m==1:
	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:
print("Yes" if sorted(input())==['a', 'b', 'c'] 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 = input()
print(["No","Yes"]["a" in S and "b" in S and "c" in S])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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()
a = bool(0)
b = bool(0)
c = bool(0)
for i in range(3):
    if(S[i] is "a"):a = 1
    if(S[i] is "b"):b = 1
    if(S[i] is "c"):c = 1
if(a and b and c):print("Yes")
else:print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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