print("NYoe s"[len({*(input())})==3::2]) print("NYoe s"[len({*(input())})==3::2]) print "NYoe s"[len({*(input())})==3::2] "NYoe s" len({*(input())})==3::2 len({*(input())})==3 len({*(input())}) len {*(input())} 3 2
print("NYoe s"[len({*(input())})==3::2])