first_number = float(input())
second_number = float(input())
third_number = float(input())
if first_number == second_number and second_number == third_number:
    print("yes")
else:
    print("no")

first_number = float(input())
second_number = float(input())
third_number = float(input())
if first_number == second_number and second_number == third_number:
    print("yes")
else:
    print("no")
