import sys

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



def resolve():

    s=eval(input())

    if s.count('a')==s.count('b')==s.count('c')==1:

        print('Yes')

    else:

        print('No')

resolve()
import sys

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



def resolve():

    s=eval(input())

    if s in ['abc','acb','bca','bac','cab','cba']:

        print('Yes')

    else:

        print('No')

resolve()
import sys


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


def resolve():
    s = eval(input())
    if s.count("a") == s.count("b") == s.count("c") == 1:
        print("Yes")
    else:
        print("No")


resolve()

import sys


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


def resolve():
    s = eval(input())
    if s in ["abc", "acb", "bca", "bac", "cab", "cba"]:
        print("Yes")
    else:
        print("No")


resolve()

-    if s.count("a") == s.count("b") == s.count("c") == 1: +    if s in ["abc", "acb", "bca", "bac", "cab", "cba"]: