import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        char[] charStr = new char[3];
        boolean judge = false;
        for(int i = 0; i<3; i++){
            charStr[i] = num.charAt(i);
            if(charStr[i] == '7'){
                judge = true;
            }  
        }
        System.out.println(judge ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        char[] charStr = new char[3];
        boolean judge = false;
        for(int i = 0; i<3; i++){
            charStr[i] = num.charAt(i);
            if(charStr[i] == '7'){
                judge = true;
            }  
        }
        System.out.println(judge ? "Yes" : "No");
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        char[] charStr = new char[3];
        boolean judge = false;
        for(int i = 0; i<3; i++){
            charStr[i] = num.charAt(i);
            if(charStr[i] == '7'){
                judge = true;
            }  
        }
        System.out.println(judge ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        char[] charStr = new char[3];
        boolean judge = false;
        for(int i = 0; i<3; i++){
            charStr[i] = num.charAt(i);
            if(charStr[i] == '7'){
                judge = true;
            }  
        }
        System.out.println(judge ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String num = sc.next(); num sc.next() sc.next sc char[] charStr = new char[3]; charStr new char[3] 3 boolean judge = false; judge false for(int i = 0; i<3; i++){
            charStr[i] = num.charAt(i);
            if(charStr[i] == '7'){
                judge = true;
            }  
        } int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
            charStr[i] = num.charAt(i);
            if(charStr[i] == '7'){
                judge = true;
            }  
        } {
            charStr[i] = num.charAt(i);
            if(charStr[i] == '7'){
                judge = true;
            }  
        } charStr[i] = num.charAt(i) charStr[i] charStr i num.charAt(i) num.charAt num i if(charStr[i] == '7'){
                judge = true;
            } charStr[i] == '7' charStr[i] charStr i '7' {
                judge = true;
            } judge = true judge true System.out.println(judge ? "Yes" : "No") System.out.println System.out System System.out judge ? "Yes" : "No" judge "Yes" "No" String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        char[] charStr = new char[3];
        boolean judge = false;
        for(int i = 0; i<3; i++){
            charStr[i] = num.charAt(i);
            if(charStr[i] == '7'){
                judge = true;
            }  
        }
        System.out.println(judge ? "Yes" : "No");
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        char[] charStr = new char[3];
        boolean judge = false;
        for(int i = 0; i<3; i++){
            charStr[i] = num.charAt(i);
            if(charStr[i] == '7'){
                judge = true;
            }  
        }
        System.out.println(judge ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

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