str=eval(input())

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

if str[0] in list:

  list.remove(str[0])

  if str[1] in list:

    list.remove(str[1])

    if str[2] in list:

      print("Yes")

    else:

      print("No")

  else:

    print("No")

else:

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

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



list.remove(string[0])

try:

  list.remove(string[1])

  try:

    list.remove(string[2])

    print("Yes")

  except:

    print("No")

except:

  print("No")
str = eval(input())
list = ["a", "b", "c"]
if str[0] in list:
    list.remove(str[0])
    if str[1] in list:
        list.remove(str[1])
        if str[2] in list:
            print("Yes")
        else:
            print("No")
    else:
        print("No")
else:
    print("No")

string = eval(input())
list = ["a", "b", "c"]
list.remove(string[0])
try:
    list.remove(string[1])
    try:
        list.remove(string[2])
        print("Yes")
    except:
        print("No")
except:
    print("No")

-str = eval(input()) +string = eval(input()) -if str[0] in list: -    list.remove(str[0]) -    if str[1] in list: -        list.remove(str[1]) -        if str[2] in list: -            print("Yes") -        else: -            print("No") -    else: +list.remove(string[0]) +try: +    list.remove(string[1]) +    try: +        list.remove(string[2]) +        print("Yes") +    except: -else: +except: