"use strict";
const input = require("fs").readFileSync("/dev/stdin", "utf8");
let args = input.split(/\s/)
args.pop();
console.log(args.some((arg, index) => args.indexOf(arg) === index) ? "NO" : "YES");