import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		String[] list = s.split("");
      	int check = 0;
      	for(int i=0; i<s.length(); i++){
          if(list[i].equals("7")) check=1;
        }
      	if(check==0) System.out.println("No");
      	else System.out.println("Yes");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		String[] list = s.split("");
      	int check = 0;
      	for(int i=0; i<s.length(); i++){
          if(list[i].equals("7")) check=1;
        }
      	if(check==0) System.out.println("No");
      	else System.out.println("Yes");
	}
} Main public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		String[] list = s.split("");
      	int check = 0;
      	for(int i=0; i<s.length(); i++){
          if(list[i].equals("7")) check=1;
        }
      	if(check==0) System.out.println("No");
      	else System.out.println("Yes");
	} main {
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		String[] list = s.split("");
      	int check = 0;
      	for(int i=0; i<s.length(); i++){
          if(list[i].equals("7")) check=1;
        }
      	if(check==0) System.out.println("No");
      	else System.out.println("Yes");
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String s = scn.next(); s scn.next() scn.next scn String[] list = s.split(""); list s.split("") s.split s "" int check = 0; check 0 for(int i=0; i<s.length(); i++){
          if(list[i].equals("7")) check=1;
        } int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
          if(list[i].equals("7")) check=1;
        } {
          if(list[i].equals("7")) check=1;
        } if(list[i].equals("7")) check=1; list[i].equals("7") list[i].equals list[i] list i "7" check=1 check 1 if(check==0) System.out.println("No");
      	else System.out.println("Yes"); check==0 check 0 System.out.println("No") System.out.println System.out System System.out "No" System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		String[] list = s.split("");
      	int check = 0;
      	for(int i=0; i<s.length(); i++){
          if(list[i].equals("7")) check=1;
        }
      	if(check==0) System.out.println("No");
      	else System.out.println("Yes");
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		String[] list = s.split("");
      	int check = 0;
      	for(int i=0; i<s.length(); i++){
          if(list[i].equals("7")) check=1;
        }
      	if(check==0) System.out.println("No");
      	else System.out.println("Yes");
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		String[] list = s.split("");
      	int check = 0;
      	for(int i=0; i<s.length(); i++){
          if(list[i].equals("7")) check=1;
        }
      	if(check==0) System.out.println("No");
      	else System.out.println("Yes");
	}
}
