import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;

public class Main {
    public static void main(String[] args){
        try{
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String  t=br.readLine();
            boolean ff=false;
            for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            }
            if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }catch(Exception e){
            System.out.println("KKKK "+e.getMessage());
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashMap; HashMap java.util public class Main {
    public static void main(String[] args){
        try{
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String  t=br.readLine();
            boolean ff=false;
            for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            }
            if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }catch(Exception e){
            System.out.println("KKKK "+e.getMessage());
        }
    }
} Main public static void main(String[] args){
        try{
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String  t=br.readLine();
            boolean ff=false;
            for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            }
            if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }catch(Exception e){
            System.out.println("KKKK "+e.getMessage());
        }
    } main {
        try{
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String  t=br.readLine();
            boolean ff=false;
            for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            }
            if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }catch(Exception e){
            System.out.println("KKKK "+e.getMessage());
        }
    } try{
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String  t=br.readLine();
            boolean ff=false;
            for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            }
            if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }catch(Exception e){
            System.out.println("KKKK "+e.getMessage());
        } catch(Exception e){
            System.out.println("KKKK "+e.getMessage());
        } Exception e {
            System.out.println("KKKK "+e.getMessage());
        } System.out.println("KKKK "+e.getMessage()) System.out.println System.out System System.out "KKKK "+e.getMessage() "KKKK " e.getMessage() e.getMessage e {
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String  t=br.readLine();
            boolean ff=false;
            for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            }
            if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String  t=br.readLine(); t br.readLine() br.readLine br boolean ff=false; ff false for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            } int i=0; int i=0; i 0 i<t.length() i t.length() t.length t i++ i++ i {
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            } {
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            } if(t.charAt(i)=='7'){
                    ff=true;
                } t.charAt(i)=='7' t.charAt(i) t.charAt t i '7' {
                    ff=true;
                } ff=true ff true if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            } ff {
                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){
        try{
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String  t=br.readLine();
            boolean ff=false;
            for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            }
            if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }catch(Exception e){
            System.out.println("KKKK "+e.getMessage());
        }
    }
} public class Main {
    public static void main(String[] args){
        try{
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String  t=br.readLine();
            boolean ff=false;
            for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            }
            if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }catch(Exception e){
            System.out.println("KKKK "+e.getMessage());
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;

public class Main {
    public static void main(String[] args){
        try{
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String  t=br.readLine();
            boolean ff=false;
            for(int i=0;i<t.length();i++){
                if(t.charAt(i)=='7'){
                    ff=true;
                }
            }
            if(ff){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }catch(Exception e){
            System.out.println("KKKK "+e.getMessage());
        }
    }
}
