
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		char[] str = sc.next().toCharArray();
		
		if(str[0] == '7' || str[1] == '7' || str[2] == '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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		char[] str = sc.next().toCharArray();
		
		if(str[0] == '7' || str[1] == '7' || str[2] == '7') {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		char[] str = sc.next().toCharArray();
		
		if(str[0] == '7' || str[1] == '7' || str[2] == '7') {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		char[] str = sc.next().toCharArray();
		
		if(str[0] == '7' || str[1] == '7' || str[2] == '7') {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] str = sc.next().toCharArray(); str sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc if(str[0] == '7' || str[1] == '7' || str[2] == '7') {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		} str[0] == '7' || str[1] == '7' || str[2] == '7' str[0] == '7' || str[1] == '7' || str[2] == '7' str[0] == '7' str[0] str 0 '7' str[1] == '7' str[1] str 1 '7' str[2] == '7' str[2] 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" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		char[] str = sc.next().toCharArray();
		
		if(str[0] == '7' || str[1] == '7' || str[2] == '7') {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		char[] str = sc.next().toCharArray();
		
		if(str[0] == '7' || str[1] == '7' || str[2] == '7') {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		char[] str = sc.next().toCharArray();
		
		if(str[0] == '7' || str[1] == '7' || str[2] == '7') {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}

}
