import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int ans = 0;
		int ans1 = 0;
		int ans2 = 0;
		int ans3 = 0;
		ans1 = N % 10;
		ans2 = N % 100;
		ans2 = ans2 / 10;
		ans3 = N / 100;
		if(ans3 == 7 || ans2 == 7 || ans1 == 7){
			ans = 1;
		}
		if(ans == 1){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
		stdIn.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int ans = 0;
		int ans1 = 0;
		int ans2 = 0;
		int ans3 = 0;
		ans1 = N % 10;
		ans2 = N % 100;
		ans2 = ans2 / 10;
		ans3 = N / 100;
		if(ans3 == 7 || ans2 == 7 || ans1 == 7){
			ans = 1;
		}
		if(ans == 1){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
		stdIn.close();
	}
} Main public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int ans = 0;
		int ans1 = 0;
		int ans2 = 0;
		int ans3 = 0;
		ans1 = N % 10;
		ans2 = N % 100;
		ans2 = ans2 / 10;
		ans3 = N / 100;
		if(ans3 == 7 || ans2 == 7 || ans1 == 7){
			ans = 1;
		}
		if(ans == 1){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
		stdIn.close();
	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int ans = 0;
		int ans1 = 0;
		int ans2 = 0;
		int ans3 = 0;
		ans1 = N % 10;
		ans2 = N % 100;
		ans2 = ans2 / 10;
		ans3 = N / 100;
		if(ans3 == 7 || ans2 == 7 || ans1 == 7){
			ans = 1;
		}
		if(ans == 1){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
		stdIn.close();
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int ans = 0; ans 0 int ans1 = 0; ans1 0 int ans2 = 0; ans2 0 int ans3 = 0; ans3 0 ans1 = N % 10 ans1 N % 10 N 10 ans2 = N % 100 ans2 N % 100 N 100 ans2 = ans2 / 10 ans2 ans2 / 10 ans2 10 ans3 = N / 100 ans3 N / 100 N 100 if(ans3 == 7 || ans2 == 7 || ans1 == 7){
			ans = 1;
		} ans3 == 7 || ans2 == 7 || ans1 == 7 ans3 == 7 || ans2 == 7 || ans1 == 7 ans3 == 7 ans3 7 ans2 == 7 ans2 7 ans1 == 7 ans1 7 {
			ans = 1;
		} ans = 1 ans 1 if(ans == 1){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		} ans == 1 ans 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" stdIn.close() stdIn.close stdIn String[] args args public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int ans = 0;
		int ans1 = 0;
		int ans2 = 0;
		int ans3 = 0;
		ans1 = N % 10;
		ans2 = N % 100;
		ans2 = ans2 / 10;
		ans3 = N / 100;
		if(ans3 == 7 || ans2 == 7 || ans1 == 7){
			ans = 1;
		}
		if(ans == 1){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
		stdIn.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int ans = 0;
		int ans1 = 0;
		int ans2 = 0;
		int ans3 = 0;
		ans1 = N % 10;
		ans2 = N % 100;
		ans2 = ans2 / 10;
		ans3 = N / 100;
		if(ans3 == 7 || ans2 == 7 || ans1 == 7){
			ans = 1;
		}
		if(ans == 1){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
		stdIn.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int ans = 0;
		int ans1 = 0;
		int ans2 = 0;
		int ans3 = 0;
		ans1 = N % 10;
		ans2 = N % 100;
		ans2 = ans2 / 10;
		ans3 = N / 100;
		if(ans3 == 7 || ans2 == 7 || ans1 == 7){
			ans = 1;
		}
		if(ans == 1){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
		stdIn.close();
	}
}