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-----
bac

-----Sample Output-----
Yes

Swapping the first and second characters in bac results in abc.

Difficulty: introductory

Starter code:

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

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

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

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

# a,b,cからなる三文字のsを入力
s = input()
# 並べ替えたらabcになるならYes
if "a" in s and "b" in s and "c" in s:
    print("Yes")
else:
    print("No")

S = str(input())
abc = [S[0], S[1], S[2]]
if "a" in abc and "b" in abc and "c" in abc:
    print("Yes")
else:
    print("No")

word = input()

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

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


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

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

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

s = sorted(input())

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

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

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

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

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


# A - abc of ABC
# https://atcoder.jp/contests/abc093/tasks/abc093_a

s = input()

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


a,b,c=input()

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

# A - abc of ABC

# 標準入力S
S = input()
abc_list = ["a", "b", "c"]

for i in S:
    if i in abc_list:
        abc_list.remove(i)

if len(abc_list) == 0:
    print('Yes')
else:
    print('No')
    



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

S = list(input())

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

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


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

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

li = list(input())

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


list01 = list(input())
list02 = list(set(list01))
if len(list02) == 3:
    print('Yes')
else:
    print('No')

print(["No","Yes"]["".join(sorted(input()))=="abc"])

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

S = input()

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

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

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

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

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

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

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

a = list(input())
a.sort()
#sortメソッドを使って、順番に並べる。
# たとえbcaでもcbaでもabcの順にしてくれる
if a[0] == 'a' and a[1] == 'b' and a[2] == 'c':
    print("Yes")
else:
    print("No")

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


s = list(input())
s.sort()

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

S = input()
S1 =len(set(S))

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


S = input()
A = sorted(S)
hantei = "".join(A)
#print(hantei)
                 
if hantei == "abc" :
    result = "Yes"
else:
    result ="No"
print(result)

S = input()
a_list = list(S)
a_ct = 0
b_ct = 0
c_ct = 0

for i in range(0,3):
    if a_list[i] == 'a':
        a_ct = a_ct + 1

for i in range(0,3):
    if a_list[i] == 'b':
        b_ct = b_ct + 1

for i in range(0,3):
    if a_list[i] == 'c':
        c_ct = c_ct + 1

if a_ct == 1 and b_ct == 1 and c_ct == 1:
    print('Yes')
else:
    print('No')

s = input()

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

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

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

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

import numpy as np

S=input()

s = [st for st in S]
if len(np.unique(s)) == 3:
  print("Yes")
else:
  print("No")

S = input()

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

S = input()

if S[0] == S[1] or S[1] == S[2] or S[2] == S[0]:
    print('No')
else:
    print('Yes')

s = set(input())

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

S = sorted(input())

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

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

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


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

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

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

s = list(input())

s.sort()

print("Yes" if s[0] + s[1] + s[2] == "abc" else "No")

S = input()

if S[0] != S[1] and S[1] != S[2] and S[2] != S[0]:
    print('Yes')

else:
    print('No')


S = str(input())

if S[0] != S[1] and S[1] != S[2] and S[2] != S[0]:
    print('Yes')

else:
    print('No')



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


s=input()

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

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


# 文字列を取得死並び替え
S = str(input())

# 文字列の検査結果を出力
get_list = sorted(S)
abc_list = ["a","b","c"]
if get_list == abc_list:
    print("Yes")
else:
    print("No")

S = input()

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

s = input()

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

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

import sys
sys.setrecursionlimit(10**9)

def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def deb(text): print("-------\n{}\n-------".format(text))

INF=10**20
class Counter:
    def __init__(self):
        self.dict = {}

    def add(self,x):
        if x in self.dict: self.dict[x] += 1
        else: self.dict[x] = 1

    def decrement(self,x):
        self.dict[x] -= 1
        if self.dict[x] <= 0:
            del self.dict[x]

    def get_dict(self):
        return self.dict

def main():
    S=input()
    counter = Counter()
    for s in S:
        counter.add(s)

    d = counter.get_dict()
    for s in ['a','b','c']:
        if not s in d  or d[s] != 1:
            print("No")
            return
        
    print("Yes")






def __starting_point():
    main()
__starting_point()

S = input()

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

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

a = list(input())
a.sort()

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

s = input()

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

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

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

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

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

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

s = input()

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

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

S = str(input())

list_S = list(S)

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

S = input()

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

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

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

S = str(input())

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

abc = [S[0], S[1], S[2]]
if "a" in abc and "b" in abc and "c" in abc:
    print("Yes")
else:
    print("No")

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

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

s=input()
s=sorted(s)

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

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


S = input()
ABC = (list(S))
ABC.sort()
# print(ABC)

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

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

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

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


def main():
    s = set(input())

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


main()

#
# abc093 a
#
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """bac"""
        output = """Yes"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """bab"""
        output = """No"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """abc"""
        output = """Yes"""
        self.assertIO(input, output)

    def test_入力例_4(self):
        input = """aaa"""
        output = """No"""
        self.assertIO(input, output)


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


def __starting_point():
    # unittest.main()
    resolve()

__starting_point()

S = str(input())

list_S = list(S)

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

S = input()
S = sorted(S)

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

S = str(input())

if S[0] == S[1] or S[1] == S[2] or S[0] == S[2]:
    print('No')
else:
    print('Yes')

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

S = list(input())
S.sort()

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


S = str(input())

if S[0] != S[1] and S[0] != S[2] and S[1] != S[2]:
    result = 'Yes'
else:
    result = 'No'

print(result)

s = list(input())

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

s=str(input())

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

def atc_093a(input_value):
    try:
        input_value.index("a")
        input_value.index("b")
        input_value.index("c")
        return "Yes"
    except ValueError:
        return "No"

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

S = input()
if set(S) == {'a', 'b', 'c'}:
    print('Yes')
else:
    print('No')

S=str(input())
S_list=sorted(S)
if S_list[0]+S_list[1]+S_list[2]=="abc":
    print("Yes")
else:
    print("No")


# 093a

def atc_093a(input_value):
    try:
        input_value.index("a")
        input_value.index("b")
        input_value.index("c")
        return "Yes"
    except ValueError:
        return "No"

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


S = str(input())

if S[0] != S[1] and S[0] != S[2] and S[1] != S[2]:
    result = 'Yes'
else:
    result = 'No'

print(result)