import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int num;
        Scanner scan = new Scanner(System.in);

        num = scan.nextInt();

        String num_s = String.valueOf(num);

        boolean bool = false;
        for(int i = 0; i < 3; i++) {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        }

        if(bool) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        int num;
        Scanner scan = new Scanner(System.in);

        num = scan.nextInt();

        String num_s = String.valueOf(num);

        boolean bool = false;
        for(int i = 0; i < 3; i++) {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        }

        if(bool) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        int num;
        Scanner scan = new Scanner(System.in);

        num = scan.nextInt();

        String num_s = String.valueOf(num);

        boolean bool = false;
        for(int i = 0; i < 3; i++) {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        }

        if(bool) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        int num;
        Scanner scan = new Scanner(System.in);

        num = scan.nextInt();

        String num_s = String.valueOf(num);

        boolean bool = false;
        for(int i = 0; i < 3; i++) {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        }

        if(bool) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } int num; num Scanner scan = new Scanner(System.in); scan new Scanner(System.in) num = scan.nextInt() num scan.nextInt() scan.nextInt scan String num_s = String.valueOf(num); num_s String.valueOf(num) String.valueOf String num boolean bool = false; bool false for(int i = 0; i < 3; i++) {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        } {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        } String s = num_s.substring(i, i+1); s num_s.substring(i, i+1) num_s.substring num_s i i+1 i 1 if(s.equals("7")) {
                bool = true;
                break;
            } s.equals("7") s.equals s "7" {
                bool = true;
                break;
            } bool = true bool true break; if(bool) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } bool {
            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) {
        int num;
        Scanner scan = new Scanner(System.in);

        num = scan.nextInt();

        String num_s = String.valueOf(num);

        boolean bool = false;
        for(int i = 0; i < 3; i++) {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        }

        if(bool) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        int num;
        Scanner scan = new Scanner(System.in);

        num = scan.nextInt();

        String num_s = String.valueOf(num);

        boolean bool = false;
        for(int i = 0; i < 3; i++) {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        }

        if(bool) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int num;
        Scanner scan = new Scanner(System.in);

        num = scan.nextInt();

        String num_s = String.valueOf(num);

        boolean bool = false;
        for(int i = 0; i < 3; i++) {
            String s = num_s.substring(i, i+1);
            if(s.equals("7")) {
                bool = true;
                break;
            }
        }

        if(bool) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}