const resulter = (v) => {
  return v.split(" ").every( (n,i,ary) => n == ary[0] )
  		 ? "Yes"
         : "No"
}
const result = resulter(require('fs').readFileSync('/dev/stdin', 'utf8'))
console.log(result)