You are given three integers A, B and C.  Determine if there exists an equilateral triangle whose sides have lengths A, B and C.
a,b,c=list(map(int, input().split()))

if a==b and b==c:
  print("YES")
else:
  print("NO")
a,b,c=list(map(int, input().split()))

if a==b and b==c:
  print("Yes")
else:
  print("No")
