import java.util.*;
public class Main{
    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        if(n.indexOf("7") < 0) 
        {
            System.out.println("No");
        } 
      	else
        {
            System.out.println("Yes");
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        if(n.indexOf("7") < 0) 
        {
            System.out.println("No");
        } 
      	else
        {
            System.out.println("Yes");
        }
    }
} Main public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        if(n.indexOf("7") < 0) 
        {
            System.out.println("No");
        } 
      	else
        {
            System.out.println("Yes");
        }
    } main {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        if(n.indexOf("7") < 0) 
        {
            System.out.println("No");
        } 
      	else
        {
            System.out.println("Yes");
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String n = in.nextLine(); n in.nextLine() in.nextLine in if(n.indexOf("7") < 0) 
        {
            System.out.println("No");
        } 
      	else
        {
            System.out.println("Yes");
        } n.indexOf("7") < 0 n.indexOf("7") n.indexOf n "7" 0 {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } 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[]) {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        if(n.indexOf("7") < 0) 
        {
            System.out.println("No");
        } 
      	else
        {
            System.out.println("Yes");
        }
    }
} public class Main{
    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        if(n.indexOf("7") < 0) 
        {
            System.out.println("No");
        } 
      	else
        {
            System.out.println("Yes");
        }
    }
} Main
import java.util.*;
public class Main{
    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        if(n.indexOf("7") < 0) 
        {
            System.out.println("No");
        } 
      	else
        {
            System.out.println("Yes");
        }
    }
}
