import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.nextLine();
        sc.close();

        if (String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.nextLine();
        sc.close();

        if (String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.nextLine();
        sc.close();

        if (String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    } main {
        Scanner sc = new Scanner(System.in);
        String N = sc.nextLine();
        sc.close();

        if (String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.nextLine(); N sc.nextLine() sc.nextLine sc sc.close() sc.close sc if (String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7") String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7") String.valueOf(N.charAt(0)).equals("7") String.valueOf(N.charAt(0)).equals String.valueOf(N.charAt(0)) String.valueOf String N.charAt(0) N.charAt N 0 "7" String.valueOf(N.charAt(1)).equals("7") String.valueOf(N.charAt(1)).equals String.valueOf(N.charAt(1)) String.valueOf String N.charAt(1) N.charAt N 1 "7" String.valueOf(N.charAt(2)).equals("7") String.valueOf(N.charAt(2)).equals String.valueOf(N.charAt(2)) String.valueOf String N.charAt(2) N.charAt N 2 "7" {
            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) {
        Scanner sc = new Scanner(System.in);
        String N = sc.nextLine();
        sc.close();

        if (String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.nextLine();
        sc.close();

        if (String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.nextLine();
        sc.close();

        if (String.valueOf(N.charAt(0)).equals("7") || String.valueOf(N.charAt(1)).equals("7")
                || String.valueOf(N.charAt(2)).equals("7")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    }
}
