import java.util.*;

public class Main {

    public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String n = sc.nextLine();
            boolean check =false;
      		
      		for(int i=0;i<3;i++)
      		if(n.charAt(i)=='7')check=true;

            System.out.println(check?"Yes":"No");
          }
        } import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String n = sc.nextLine();
            boolean check =false;
      		
      		for(int i=0;i<3;i++)
      		if(n.charAt(i)=='7')check=true;

            System.out.println(check?"Yes":"No");
          }
        } Main public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String n = sc.nextLine();
            boolean check =false;
      		
      		for(int i=0;i<3;i++)
      		if(n.charAt(i)=='7')check=true;

            System.out.println(check?"Yes":"No");
          } main {
            Scanner sc = new Scanner(System.in);
            String n = sc.nextLine();
            boolean check =false;
      		
      		for(int i=0;i<3;i++)
      		if(n.charAt(i)=='7')check=true;

            System.out.println(check?"Yes":"No");
          } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.nextLine(); n sc.nextLine() sc.nextLine sc boolean check =false; check false for(int i=0;i<3;i++)
      		if(n.charAt(i)=='7')check=true; int i=0; int i=0; i 0 i<3 i 3 i++ i++ i if(n.charAt(i)=='7')check=true; if(n.charAt(i)=='7')check=true; n.charAt(i)=='7' n.charAt(i) n.charAt n i '7' check=true check true System.out.println(check?"Yes":"No") System.out.println System.out System System.out check?"Yes":"No" check "Yes" "No" String[] args args public class Main {

    public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String n = sc.nextLine();
            boolean check =false;
      		
      		for(int i=0;i<3;i++)
      		if(n.charAt(i)=='7')check=true;

            System.out.println(check?"Yes":"No");
          }
        } public class Main {

    public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String n = sc.nextLine();
            boolean check =false;
      		
      		for(int i=0;i<3;i++)
      		if(n.charAt(i)=='7')check=true;

            System.out.println(check?"Yes":"No");
          }
        } Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String n = sc.nextLine();
            boolean check =false;
      		
      		for(int i=0;i<3;i++)
      		if(n.charAt(i)=='7')check=true;

            System.out.println(check?"Yes":"No");
          }
        }
