# coding: utf-8

import re

S = eval(input())

find_a = re.findall("a",S)

find_b = re.findall("b",S)

find_c = re.findall("c",S)

if find_a and find_b and find_c:

    print("Yes")

else:

    print("No")
S = eval(input())

ans = 0

for i in S:

    if i == "a":

        ans += 1

    elif i == "b":

        ans += 2

    elif i == "c":

        ans += 3

if ans == 6:

    print("Yes")

else:

    print("No")
# coding: utf-8
import re

S = eval(input())
find_a = re.findall("a", S)
find_b = re.findall("b", S)
find_c = re.findall("c", S)
if find_a and find_b and find_c:
    print("Yes")
else:
    print("No")

S = eval(input())
ans = 0
for i in S:
    if i == "a":
        ans += 1
    elif i == "b":
        ans += 2
    elif i == "c":
        ans += 3
if ans == 6:
    print("Yes")
else:
    print("No")

-# coding: utf-8 -import re - -find_a = re.findall("a", S) -find_b = re.findall("b", S) -find_c = re.findall("c", S) -if find_a and find_b and find_c: +ans = 0 +for i in S: +    if i == "a": +        ans += 1 +    elif i == "b": +        ans += 2 +    elif i == "c": +        ans += 3 +if ans == 6: