import java.util.Scanner;

public class Main {
	public static void main (String args[]){
		Scanner scan = new Scanner(System.in);
		String w = scan.nextLine();
		String a = w.substring(0,1);
		String b = w.substring(1,2);
		String c = w.substring(2,3);
		String ans = "7";

			if (a.equals(ans)){
				System.out.println("Yes");
			}else if (b.equals(ans)){
				System.out.println("Yes");
			}else if (c.equals(ans)){
				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 scan = new Scanner(System.in);
		String w = scan.nextLine();
		String a = w.substring(0,1);
		String b = w.substring(1,2);
		String c = w.substring(2,3);
		String ans = "7";

			if (a.equals(ans)){
				System.out.println("Yes");
			}else if (b.equals(ans)){
				System.out.println("Yes");
			}else if (c.equals(ans)){
				System.out.println("Yes");
			}else{
				System.out.println("No");
		}
	}
} Main public static void main (String args[]){
		Scanner scan = new Scanner(System.in);
		String w = scan.nextLine();
		String a = w.substring(0,1);
		String b = w.substring(1,2);
		String c = w.substring(2,3);
		String ans = "7";

			if (a.equals(ans)){
				System.out.println("Yes");
			}else if (b.equals(ans)){
				System.out.println("Yes");
			}else if (c.equals(ans)){
				System.out.println("Yes");
			}else{
				System.out.println("No");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		String w = scan.nextLine();
		String a = w.substring(0,1);
		String b = w.substring(1,2);
		String c = w.substring(2,3);
		String ans = "7";

			if (a.equals(ans)){
				System.out.println("Yes");
			}else if (b.equals(ans)){
				System.out.println("Yes");
			}else if (c.equals(ans)){
				System.out.println("Yes");
			}else{
				System.out.println("No");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String w = scan.nextLine(); w scan.nextLine() scan.nextLine scan String a = w.substring(0,1); a w.substring(0,1) w.substring w 0 1 String b = w.substring(1,2); b w.substring(1,2) w.substring w 1 2 String c = w.substring(2,3); c w.substring(2,3) w.substring w 2 3 String ans = "7"; ans "7" if (a.equals(ans)){
				System.out.println("Yes");
			}else if (b.equals(ans)){
				System.out.println("Yes");
			}else if (c.equals(ans)){
				System.out.println("Yes");
			}else{
				System.out.println("No");
		} a.equals(ans) a.equals a ans {
				System.out.println("Yes");
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" if (b.equals(ans)){
				System.out.println("Yes");
			}else if (c.equals(ans)){
				System.out.println("Yes");
			}else{
				System.out.println("No");
		} b.equals(ans) b.equals b ans {
				System.out.println("Yes");
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" if (c.equals(ans)){
				System.out.println("Yes");
			}else{
				System.out.println("No");
		} c.equals(ans) c.equals c ans {
				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 scan = new Scanner(System.in);
		String w = scan.nextLine();
		String a = w.substring(0,1);
		String b = w.substring(1,2);
		String c = w.substring(2,3);
		String ans = "7";

			if (a.equals(ans)){
				System.out.println("Yes");
			}else if (b.equals(ans)){
				System.out.println("Yes");
			}else if (c.equals(ans)){
				System.out.println("Yes");
			}else{
				System.out.println("No");
		}
	}
} public class Main {
	public static void main (String args[]){
		Scanner scan = new Scanner(System.in);
		String w = scan.nextLine();
		String a = w.substring(0,1);
		String b = w.substring(1,2);
		String c = w.substring(2,3);
		String ans = "7";

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

public class Main {
	public static void main (String args[]){
		Scanner scan = new Scanner(System.in);
		String w = scan.nextLine();
		String a = w.substring(0,1);
		String b = w.substring(1,2);
		String c = w.substring(2,3);
		String ans = "7";

			if (a.equals(ans)){
				System.out.println("Yes");
			}else if (b.equals(ans)){
				System.out.println("Yes");
			}else if (c.equals(ans)){
				System.out.println("Yes");
			}else{
				System.out.println("No");
		}
	}
}