import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.next();
        String ans = "No";
        for (int i = 0; i < 3; i++){
            char c = s.charAt(i);
            if (c == '7'){
                ans = "Yes";
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.next();
        String ans = "No";
        for (int i = 0; i < 3; i++){
            char c = s.charAt(i);
            if (c == '7'){
                ans = "Yes";
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.next();
        String ans = "No";
        for (int i = 0; i < 3; i++){
            char c = s.charAt(i);
            if (c == '7'){
                ans = "Yes";
            }
        }
        System.out.println(ans);
    } main {
        Scanner input = new Scanner(System.in);
        String s = input.next();
        String ans = "No";
        for (int i = 0; i < 3; i++){
            char c = s.charAt(i);
            if (c == '7'){
                ans = "Yes";
            }
        }
        System.out.println(ans);
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) String s = input.next(); s input.next() input.next input String ans = "No"; ans "No" for (int i = 0; i < 3; i++){
            char c = s.charAt(i);
            if (c == '7'){
                ans = "Yes";
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            char c = s.charAt(i);
            if (c == '7'){
                ans = "Yes";
            }
        } {
            char c = s.charAt(i);
            if (c == '7'){
                ans = "Yes";
            }
        } char c = s.charAt(i); c s.charAt(i) s.charAt s i if (c == '7'){
                ans = "Yes";
            } c == '7' c '7' {
                ans = "Yes";
            } ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.next();
        String ans = "No";
        for (int i = 0; i < 3; i++){
            char c = s.charAt(i);
            if (c == '7'){
                ans = "Yes";
            }
        }
        System.out.println(ans);
    }
}