import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
	 	Scanner scanner = new Scanner(System.in);
	 	int N = scanner.nextInt();
	 	int a = 0;
	 	int b = 0;
	 	int c = 0;
	 	int d = 0;

	 	a = N / 100;
	 	d = N % 100;
	 	b = d / 10;
	 	c = d % 10;
//	 	System.out.println(a);
//	 	System.out.println(b);
//	 	System.out.println(c);

	 	if (a == 7 || b == 7 || c == 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) {
	 	Scanner scanner = new Scanner(System.in);
	 	int N = scanner.nextInt();
	 	int a = 0;
	 	int b = 0;
	 	int c = 0;
	 	int d = 0;

	 	a = N / 100;
	 	d = N % 100;
	 	b = d / 10;
	 	c = d % 10;
//	 	System.out.println(a);
//	 	System.out.println(b);
//	 	System.out.println(c);

	 	if (a == 7 || b == 7 || c == 7) {
	 		System.out.println("Yes");
	 	} else {
	 		System.out.println("No");
	 	}
 	}
} Main public static void main(String[] args) {
	 	Scanner scanner = new Scanner(System.in);
	 	int N = scanner.nextInt();
	 	int a = 0;
	 	int b = 0;
	 	int c = 0;
	 	int d = 0;

	 	a = N / 100;
	 	d = N % 100;
	 	b = d / 10;
	 	c = d % 10;
//	 	System.out.println(a);
//	 	System.out.println(b);
//	 	System.out.println(c);

	 	if (a == 7 || b == 7 || c == 7) {
	 		System.out.println("Yes");
	 	} else {
	 		System.out.println("No");
	 	}
 	} main {
	 	Scanner scanner = new Scanner(System.in);
	 	int N = scanner.nextInt();
	 	int a = 0;
	 	int b = 0;
	 	int c = 0;
	 	int d = 0;

	 	a = N / 100;
	 	d = N % 100;
	 	b = d / 10;
	 	c = d % 10;
//	 	System.out.println(a);
//	 	System.out.println(b);
//	 	System.out.println(c);

	 	if (a == 7 || b == 7 || c == 7) {
	 		System.out.println("Yes");
	 	} else {
	 		System.out.println("No");
	 	}
 	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int a = 0; a 0 int b = 0; b 0 int c = 0; c 0 int d = 0; d 0 a = N / 100 a N / 100 N 100 d = N % 100 d N % 100 N 100 b = d / 10 b d / 10 d 10 c = d % 10 c d % 10 d 10 if (a == 7 || b == 7 || c == 7) {
	 		System.out.println("Yes");
	 	} else {
	 		System.out.println("No");
	 	} a == 7 || b == 7 || c == 7 a == 7 || b == 7 || c == 7 a == 7 a 7 b == 7 b 7 c == 7 c 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) {
	 	Scanner scanner = new Scanner(System.in);
	 	int N = scanner.nextInt();
	 	int a = 0;
	 	int b = 0;
	 	int c = 0;
	 	int d = 0;

	 	a = N / 100;
	 	d = N % 100;
	 	b = d / 10;
	 	c = d % 10;
//	 	System.out.println(a);
//	 	System.out.println(b);
//	 	System.out.println(c);

	 	if (a == 7 || b == 7 || c == 7) {
	 		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 N = scanner.nextInt();
	 	int a = 0;
	 	int b = 0;
	 	int c = 0;
	 	int d = 0;

	 	a = N / 100;
	 	d = N % 100;
	 	b = d / 10;
	 	c = d % 10;
//	 	System.out.println(a);
//	 	System.out.println(b);
//	 	System.out.println(c);

	 	if (a == 7 || b == 7 || c == 7) {
	 		System.out.println("Yes");
	 	} else {
	 		System.out.println("No");
	 	}
 	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
	 	Scanner scanner = new Scanner(System.in);
	 	int N = scanner.nextInt();
	 	int a = 0;
	 	int b = 0;
	 	int c = 0;
	 	int d = 0;

	 	a = N / 100;
	 	d = N % 100;
	 	b = d / 10;
	 	c = d % 10;
//	 	System.out.println(a);
//	 	System.out.println(b);
//	 	System.out.println(c);

	 	if (a == 7 || b == 7 || c == 7) {
	 		System.out.println("Yes");
	 	} else {
	 		System.out.println("No");
	 	}
 	}
}
