function Main(input) {
  const number = input.split('\n')[0].split(' ')
  if (number[0] === number[1] && number[1] === number[2]) {
    console.log("YES");
  } else {
    console.log("NO");
  }
}
Main(require("fs").readFileSync("/dev/stdin","utf8"));