import java.util.*;


public class Main {

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	/**
	 * @param args
	 */
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		String ans;
		
		if(a < 100 || a > 999) {
			ans = "No";
		}
		else if (a-(a % 100) == 700) {
			ans = "Yes";
		}
		else if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No";
		
		sc.close();
		log( ans );

	}
}	 import java.util.*; util.* java public class Main {

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	/**
	 * @param args
	 */
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		String ans;
		
		if(a < 100 || a > 999) {
			ans = "No";
		}
		else if (a-(a % 100) == 700) {
			ans = "Yes";
		}
		else if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No";
		
		sc.close();
		log( ans );

	}
} Main static void log(String s) {
		System.out.println(s);
	} log {
		System.out.println(s);
	} System.out.println(s) System.out.println System.out System System.out s String s s static void log(int i) {
		System.out.println(i);
	} log {
		System.out.println(i);
	} System.out.println(i) System.out.println System.out System System.out i int i i /**
	 * @param args
	 */
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		String ans;
		
		if(a < 100 || a > 999) {
			ans = "No";
		}
		else if (a-(a % 100) == 700) {
			ans = "Yes";
		}
		else if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No";
		
		sc.close();
		log( ans );

	} main {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		String ans;
		
		if(a < 100 || a > 999) {
			ans = "No";
		}
		else if (a-(a % 100) == 700) {
			ans = "Yes";
		}
		else if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No";
		
		sc.close();
		log( ans );

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc String ans; ans if(a < 100 || a > 999) {
			ans = "No";
		}
		else if (a-(a % 100) == 700) {
			ans = "Yes";
		}
		else if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No"; a < 100 || a > 999 a < 100 a 100 a > 999 a 999 {
			ans = "No";
		} ans = "No" ans "No" if (a-(a % 100) == 700) {
			ans = "Yes";
		}
		else if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No"; a-(a % 100) == 700 a-(a % 100) a (a % 100) a 100 700 {
			ans = "Yes";
		} ans = "Yes" ans "Yes" if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No"; (a%100)-(a%10) == 70 (a%100)-(a%10) (a%100) a 100 (a%10) a 10 70 {
			ans = "Yes";
		} ans = "Yes" ans "Yes" if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No"; (a%10)-7 == 0 (a%10)-7 (a%10) a 10 7 0 {
			ans = "Yes";
		} ans = "Yes" ans "Yes" ans = "No" ans "No" sc.close() sc.close sc log( ans ) log ans String args[] args public class Main {

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	/**
	 * @param args
	 */
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		String ans;
		
		if(a < 100 || a > 999) {
			ans = "No";
		}
		else if (a-(a % 100) == 700) {
			ans = "Yes";
		}
		else if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No";
		
		sc.close();
		log( ans );

	}
} public class Main {

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	/**
	 * @param args
	 */
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		String ans;
		
		if(a < 100 || a > 999) {
			ans = "No";
		}
		else if (a-(a % 100) == 700) {
			ans = "Yes";
		}
		else if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No";
		
		sc.close();
		log( ans );

	}
} Main
import java.util.*;


public class Main {

	static void log(String s) {
		System.out.println(s);
	}

	static void log(int i) {
		System.out.println(i);
	}

	/**
	 * @param args
	 */
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		String ans;
		
		if(a < 100 || a > 999) {
			ans = "No";
		}
		else if (a-(a % 100) == 700) {
			ans = "Yes";
		}
		else if ( (a%100)-(a%10) == 70) {
			ans = "Yes";
		}
		else if ( (a%10)-7 == 0) {
			ans = "Yes";
		}
		else
			ans = "No";
		
		sc.close();
		log( ans );

	}
}	
