import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();

        boolean flag = true;

        while(number != 0){
            if((number % 10) == 7){
                flag = false;
            }
            number = number/10;
        }

        if(flag==true)System.out.println("No");
        if(flag==false)System.out.println("Yes");
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();

        boolean flag = true;

        while(number != 0){
            if((number % 10) == 7){
                flag = false;
            }
            number = number/10;
        }

        if(flag==true)System.out.println("No");
        if(flag==false)System.out.println("Yes");
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();

        boolean flag = true;

        while(number != 0){
            if((number % 10) == 7){
                flag = false;
            }
            number = number/10;
        }

        if(flag==true)System.out.println("No");
        if(flag==false)System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();

        boolean flag = true;

        while(number != 0){
            if((number % 10) == 7){
                flag = false;
            }
            number = number/10;
        }

        if(flag==true)System.out.println("No");
        if(flag==false)System.out.println("Yes");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int number = sc.nextInt(); number sc.nextInt() sc.nextInt sc boolean flag = true; flag true while(number != 0){
            if((number % 10) == 7){
                flag = false;
            }
            number = number/10;
        } number != 0 number 0 {
            if((number % 10) == 7){
                flag = false;
            }
            number = number/10;
        } if((number % 10) == 7){
                flag = false;
            } (number % 10) == 7 (number % 10) number 10 7 {
                flag = false;
            } flag = false flag false number = number/10 number number/10 number 10 if(flag==true)System.out.println("No"); flag==true flag true System.out.println("No") System.out.println System.out System System.out "No" if(flag==false)System.out.println("Yes"); flag==false flag false 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 sc = new Scanner(System.in);
        int number = sc.nextInt();

        boolean flag = true;

        while(number != 0){
            if((number % 10) == 7){
                flag = false;
            }
            number = number/10;
        }

        if(flag==true)System.out.println("No");
        if(flag==false)System.out.println("Yes");
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();

        boolean flag = true;

        while(number != 0){
            if((number % 10) == 7){
                flag = false;
            }
            number = number/10;
        }

        if(flag==true)System.out.println("No");
        if(flag==false)System.out.println("Yes");
    }
} Main
import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();

        boolean flag = true;

        while(number != 0){
            if((number % 10) == 7){
                flag = false;
            }
            number = number/10;
        }

        if(flag==true)System.out.println("No");
        if(flag==false)System.out.println("Yes");
    }
}