import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    }
    public static void do_(Scanner inp) {
        String s = inp.next();
        System.out.println(s.contains("7") ? "Yes" : "No");
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    }
    public static void do_(Scanner inp) {
        String s = inp.next();
        System.out.println(s.contains("7") ? "Yes" : "No");
    }
} Main public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    } main {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    } Scanner inp = new Scanner(System.in); inp new Scanner(System.in) do_(inp) do_ inp inp.close() inp.close inp String args[] args public static void do_(Scanner inp) {
        String s = inp.next();
        System.out.println(s.contains("7") ? "Yes" : "No");
    } do_ {
        String s = inp.next();
        System.out.println(s.contains("7") ? "Yes" : "No");
    } String s = inp.next(); s inp.next() inp.next inp System.out.println(s.contains("7") ? "Yes" : "No") System.out.println System.out System System.out s.contains("7") ? "Yes" : "No" s.contains("7") s.contains s "7" "Yes" "No" Scanner inp inp
import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    }
    public static void do_(Scanner inp) {
        String s = inp.next();
        System.out.println(s.contains("7") ? "Yes" : "No");
    }
}