import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int five = 0;
		int seven = 0;
		if (A == 5) {
		    five++;    
		} else if (A == 7) {
		    seven++;
		}
		if (B == 5) {
		    five++;    
		} else if (B == 7) {
		    seven++;
		}
		if (C == 5) {
		    five++;    
		} else if (C == 7) {
		    seven++;
		}
        if (five == 2 && seven == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int five = 0;
		int seven = 0;
		if (A == 5) {
		    five++;    
		} else if (A == 7) {
		    seven++;
		}
		if (B == 5) {
		    five++;    
		} else if (B == 7) {
		    seven++;
		}
		if (C == 5) {
		    five++;    
		} else if (C == 7) {
		    seven++;
		}
        if (five == 2 && seven == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int five = 0;
		int seven = 0;
		if (A == 5) {
		    five++;    
		} else if (A == 7) {
		    seven++;
		}
		if (B == 5) {
		    five++;    
		} else if (B == 7) {
		    seven++;
		}
		if (C == 5) {
		    five++;    
		} else if (C == 7) {
		    seven++;
		}
        if (five == 2 && seven == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    } main {
        Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int five = 0;
		int seven = 0;
		if (A == 5) {
		    five++;    
		} else if (A == 7) {
		    seven++;
		}
		if (B == 5) {
		    five++;    
		} else if (B == 7) {
		    seven++;
		}
		if (C == 5) {
		    five++;    
		} else if (C == 7) {
		    seven++;
		}
        if (five == 2 && seven == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int C = sc.nextInt(); C sc.nextInt() sc.nextInt sc int five = 0; five 0 int seven = 0; seven 0 if (A == 5) {
		    five++;    
		} else if (A == 7) {
		    seven++;
		} A == 5 A 5 {
		    five++;    
		} five++ five if (A == 7) {
		    seven++;
		} A == 7 A 7 {
		    seven++;
		} seven++ seven if (B == 5) {
		    five++;    
		} else if (B == 7) {
		    seven++;
		} B == 5 B 5 {
		    five++;    
		} five++ five if (B == 7) {
		    seven++;
		} B == 7 B 7 {
		    seven++;
		} seven++ seven if (C == 5) {
		    five++;    
		} else if (C == 7) {
		    seven++;
		} C == 5 C 5 {
		    five++;    
		} five++ five if (C == 7) {
		    seven++;
		} C == 7 C 7 {
		    seven++;
		} seven++ seven if (five == 2 && seven == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        } five == 2 && seven == 1 five == 2 five 2 seven == 1 seven 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) throws Exception {
        Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int five = 0;
		int seven = 0;
		if (A == 5) {
		    five++;    
		} else if (A == 7) {
		    seven++;
		}
		if (B == 5) {
		    five++;    
		} else if (B == 7) {
		    seven++;
		}
		if (C == 5) {
		    five++;    
		} else if (C == 7) {
		    seven++;
		}
        if (five == 2 && seven == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int five = 0;
		int seven = 0;
		if (A == 5) {
		    five++;    
		} else if (A == 7) {
		    seven++;
		}
		if (B == 5) {
		    five++;    
		} else if (B == 7) {
		    seven++;
		}
		if (C == 5) {
		    five++;    
		} else if (C == 7) {
		    seven++;
		}
        if (five == 2 && seven == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int five = 0;
		int seven = 0;
		if (A == 5) {
		    five++;    
		} else if (A == 7) {
		    seven++;
		}
		if (B == 5) {
		    five++;    
		} else if (B == 7) {
		    seven++;
		}
		if (C == 5) {
		    five++;    
		} else if (C == 7) {
		    seven++;
		}
        if (five == 2 && seven == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
