import java.util.*;
public class Main {// Main
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        long a = s.nextLong();
        boolean isExists = false;
        while(a > 0) {
            if(a%10 == 7) {
                isExists = true;
                break;
            }
            a = a/10;
        }
        if(isExists) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main {// Main
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        long a = s.nextLong();
        boolean isExists = false;
        while(a > 0) {
            if(a%10 == 7) {
                isExists = true;
                break;
            }
            a = a/10;
        }
        if(isExists) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        long a = s.nextLong();
        boolean isExists = false;
        while(a > 0) {
            if(a%10 == 7) {
                isExists = true;
                break;
            }
            a = a/10;
        }
        if(isExists) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner s = new Scanner(System.in);
        long a = s.nextLong();
        boolean isExists = false;
        while(a > 0) {
            if(a%10 == 7) {
                isExists = true;
                break;
            }
            a = a/10;
        }
        if(isExists) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) long a = s.nextLong(); a s.nextLong() s.nextLong s boolean isExists = false; isExists false while(a > 0) {
            if(a%10 == 7) {
                isExists = true;
                break;
            }
            a = a/10;
        } a > 0 a 0 {
            if(a%10 == 7) {
                isExists = true;
                break;
            }
            a = a/10;
        } if(a%10 == 7) {
                isExists = true;
                break;
            } a%10 == 7 a%10 a 10 7 {
                isExists = true;
                break;
            } isExists = true isExists true break; a = a/10 a a/10 a 10 if(isExists) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } isExists {
            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 {// Main
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        long a = s.nextLong();
        boolean isExists = false;
        while(a > 0) {
            if(a%10 == 7) {
                isExists = true;
                break;
            }
            a = a/10;
        }
        if(isExists) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {// Main
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        long a = s.nextLong();
        boolean isExists = false;
        while(a > 0) {
            if(a%10 == 7) {
                isExists = true;
                break;
            }
            a = a/10;
        }
        if(isExists) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;
public class Main {// Main
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        long a = s.nextLong();
        boolean isExists = false;
        while(a > 0) {
            if(a%10 == 7) {
                isExists = true;
                break;
            }
            a = a/10;
        }
        if(isExists) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
