import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		//整数を三つ受けとる

		int number1 = 0;
		int number2 = 0;
		int number3 = 0;
		//
		String anser = "NO";

		Scanner scan = new Scanner(System.in);

         number1 = scan.nextInt();
         number2 = scan.nextInt();
         number3 = scan.nextInt();


		//処理開始
		if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		}

		System.out.println(anser);

	}

	private static boolean checkFiveOrSeven(int number) {
		if(number ==5 || number == 7) {
			return true;
		}
		return false;
	}

}


/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz