import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int f = 0;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N == 7) {
			f++;
		}

		if (f == 0) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}

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

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int f = 0;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N == 7) {
			f++;
		}

		if (f == 0) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int f = 0;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N == 7) {
			f++;
		}

		if (f == 0) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	} main {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int f = 0;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N == 7) {
			f++;
		}

		if (f == 0) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int f = 0; f 0 if (N % 10 == 7) {
			f++;
		} N % 10 == 7 N % 10 N 10 7 {
			f++;
		} f++ f N /= 10 N 10 if (N % 10 == 7) {
			f++;
		} N % 10 == 7 N % 10 N 10 7 {
			f++;
		} f++ f N /= 10 N 10 if (N == 7) {
			f++;
		} N == 7 N 7 {
			f++;
		} f++ f if (f == 0) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		} f == 0 f 0 {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int f = 0;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N == 7) {
			f++;
		}

		if (f == 0) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int f = 0;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N == 7) {
			f++;
		}

		if (f == 0) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int N = scan.nextInt();
		int f = 0;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N % 10 == 7) {
			f++;
		}
		N /= 10;

		if (N == 7) {
			f++;
		}

		if (f == 0) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
	}

}