

import java.util.*;

public class Main {

    public static void main(String[] args) {
       Scanner scanner = new Scanner(System.in);
       int [] nums = new int[3];
       for(int i = 0 ; i<3;i++){
       nums[i] = scanner.nextInt();
       }
       int sum = 0;
       int count = 0;
       for(int i = 0 ; i<nums.length;i++){
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       }
       if(sum == 2 && count ==1){
           System.out.println("YES");
       } else {
           System.out.println("NO");
       }
       
       
    }
    
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
       Scanner scanner = new Scanner(System.in);
       int [] nums = new int[3];
       for(int i = 0 ; i<3;i++){
       nums[i] = scanner.nextInt();
       }
       int sum = 0;
       int count = 0;
       for(int i = 0 ; i<nums.length;i++){
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       }
       if(sum == 2 && count ==1){
           System.out.println("YES");
       } else {
           System.out.println("NO");
       }
       
       
    }
    
} Main public static void main(String[] args) {
       Scanner scanner = new Scanner(System.in);
       int [] nums = new int[3];
       for(int i = 0 ; i<3;i++){
       nums[i] = scanner.nextInt();
       }
       int sum = 0;
       int count = 0;
       for(int i = 0 ; i<nums.length;i++){
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       }
       if(sum == 2 && count ==1){
           System.out.println("YES");
       } else {
           System.out.println("NO");
       }
       
       
    } main {
       Scanner scanner = new Scanner(System.in);
       int [] nums = new int[3];
       for(int i = 0 ; i<3;i++){
       nums[i] = scanner.nextInt();
       }
       int sum = 0;
       int count = 0;
       for(int i = 0 ; i<nums.length;i++){
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       }
       if(sum == 2 && count ==1){
           System.out.println("YES");
       } else {
           System.out.println("NO");
       }
       
       
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int [] nums = new int[3]; nums new int[3] 3 for(int i = 0 ; i<3;i++){
       nums[i] = scanner.nextInt();
       } int i = 0 ; int i = 0 ; i 0 i<3 i 3 i++ i++ i {
       nums[i] = scanner.nextInt();
       } {
       nums[i] = scanner.nextInt();
       } nums[i] = scanner.nextInt() nums[i] nums i scanner.nextInt() scanner.nextInt scanner int sum = 0; sum 0 int count = 0; count 0 for(int i = 0 ; i<nums.length;i++){
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       } int i = 0 ; int i = 0 ; i 0 i<nums.length i nums.length nums nums.length i++ i++ i {
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       } {
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       } if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       } nums[i] == 5 nums[i] nums i 5 {
       sum++;
       } sum++ sum if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       } nums[i]  == 7 nums[i] nums i 7 {
       count++;
       } count++ count {
       sum +=0;
       count+=0;
       } sum +=0 sum 0 count+=0 count 0 if(sum == 2 && count ==1){
           System.out.println("YES");
       } else {
           System.out.println("NO");
       } sum == 2 && count ==1 sum == 2 sum 2 count ==1 count 1 {
           System.out.println("YES");
       } System.out.println("YES") System.out.println System.out System System.out "YES" {
           System.out.println("NO");
       } System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args public class Main {

    public static void main(String[] args) {
       Scanner scanner = new Scanner(System.in);
       int [] nums = new int[3];
       for(int i = 0 ; i<3;i++){
       nums[i] = scanner.nextInt();
       }
       int sum = 0;
       int count = 0;
       for(int i = 0 ; i<nums.length;i++){
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       }
       if(sum == 2 && count ==1){
           System.out.println("YES");
       } else {
           System.out.println("NO");
       }
       
       
    }
    
} public class Main {

    public static void main(String[] args) {
       Scanner scanner = new Scanner(System.in);
       int [] nums = new int[3];
       for(int i = 0 ; i<3;i++){
       nums[i] = scanner.nextInt();
       }
       int sum = 0;
       int count = 0;
       for(int i = 0 ; i<nums.length;i++){
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       }
       if(sum == 2 && count ==1){
           System.out.println("YES");
       } else {
           System.out.println("NO");
       }
       
       
    }
    
} Main


import java.util.*;

public class Main {

    public static void main(String[] args) {
       Scanner scanner = new Scanner(System.in);
       int [] nums = new int[3];
       for(int i = 0 ; i<3;i++){
       nums[i] = scanner.nextInt();
       }
       int sum = 0;
       int count = 0;
       for(int i = 0 ; i<nums.length;i++){
       if(nums[i] == 5){
       sum++;
       } else if(nums[i]  == 7 ){
       count++;
       } else{
       sum +=0;
       count+=0;
       }
       
       
       
       }
       if(sum == 2 && count ==1){
           System.out.println("YES");
       } else {
           System.out.println("NO");
       }
       
       
    }
    
}
