import std.functional,
       std.algorithm,
       std.bigint,
       std.string,
       std.traits,
       std.array,
       std.range,
       std.stdio,
       std.conv;

void main() {
  int[] inputs = readln.chomp.split.to!(int[]);
  std.algorithm.sort!"a<b"(inputs);
  writeln(inputs == [5,5,7] ? "YES" : "NO");
}
