
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();

		int thirdPlace = N / 100;
		int secondPlace = (N - thirdPlace*100)/10;
		int firstPlace = N - thirdPlace*100 - secondPlace*10;
		if(thirdPlace == 7 || secondPlace == 7 || firstPlace == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();

		int thirdPlace = N / 100;
		int secondPlace = (N - thirdPlace*100)/10;
		int firstPlace = N - thirdPlace*100 - secondPlace*10;
		if(thirdPlace == 7 || secondPlace == 7 || firstPlace == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();

		int thirdPlace = N / 100;
		int secondPlace = (N - thirdPlace*100)/10;
		int firstPlace = N - thirdPlace*100 - secondPlace*10;
		if(thirdPlace == 7 || secondPlace == 7 || firstPlace == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();

		int thirdPlace = N / 100;
		int secondPlace = (N - thirdPlace*100)/10;
		int firstPlace = N - thirdPlace*100 - secondPlace*10;
		if(thirdPlace == 7 || secondPlace == 7 || firstPlace == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.close() sc.close sc int thirdPlace = N / 100; thirdPlace N / 100 N 100 int secondPlace = (N - thirdPlace*100)/10; secondPlace (N - thirdPlace*100)/10 (N - thirdPlace*100) N thirdPlace*100 thirdPlace 100 10 int firstPlace = N - thirdPlace*100 - secondPlace*10; firstPlace N - thirdPlace*100 - secondPlace*10 N - thirdPlace*100 - secondPlace*10 N thirdPlace*100 thirdPlace 100 secondPlace*10 secondPlace 10 if(thirdPlace == 7 || secondPlace == 7 || firstPlace == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} thirdPlace == 7 || secondPlace == 7 || firstPlace == 7 thirdPlace == 7 || secondPlace == 7 || firstPlace == 7 thirdPlace == 7 thirdPlace 7 secondPlace == 7 secondPlace 7 firstPlace == 7 firstPlace 7 {
			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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();

		int thirdPlace = N / 100;
		int secondPlace = (N - thirdPlace*100)/10;
		int firstPlace = N - thirdPlace*100 - secondPlace*10;
		if(thirdPlace == 7 || secondPlace == 7 || firstPlace == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();

		int thirdPlace = N / 100;
		int secondPlace = (N - thirdPlace*100)/10;
		int firstPlace = N - thirdPlace*100 - secondPlace*10;
		if(thirdPlace == 7 || secondPlace == 7 || firstPlace == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();

		int thirdPlace = N / 100;
		int secondPlace = (N - thirdPlace*100)/10;
		int firstPlace = N - thirdPlace*100 - secondPlace*10;
		if(thirdPlace == 7 || secondPlace == 7 || firstPlace == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

}
