
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		if(str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7') {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		if(str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7') {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		if(str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7') {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		if(str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7') {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan if(str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7') {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7' str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7' str.charAt(0)=='7' str.charAt(0) str.charAt str 0 '7' str.charAt(1)=='7' str.charAt(1) str.charAt str 1 '7' str.charAt(2)=='7' str.charAt(2) str.charAt str 2 '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" scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		if(str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7') {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		scan.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		if(str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7') {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		scan.close();
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();

		if(str.charAt(0)=='7' || str.charAt(1)=='7' || str.charAt(2)=='7') {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		scan.close();
	}
}
