import java.util.*;

public class Main {

    Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();
        int cnt = 0;

        for (int i=0; i<arr.length; i++) {
            if (arr[i]=='7') cnt++;
        }

        if (cnt==0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }


    }
} import java.util.*; util.* java public class Main {

    Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();
        int cnt = 0;

        for (int i=0; i<arr.length; i++) {
            if (arr[i]=='7') cnt++;
        }

        if (cnt==0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }


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

        char[] arr = sc.next().toCharArray();
        int cnt = 0;

        for (int i=0; i<arr.length; i++) {
            if (arr[i]=='7') cnt++;
        }

        if (cnt==0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }


    } run {

        char[] arr = sc.next().toCharArray();
        int cnt = 0;

        for (int i=0; i<arr.length; i++) {
            if (arr[i]=='7') cnt++;
        }

        if (cnt==0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }


    } char[] arr = sc.next().toCharArray(); arr sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int cnt = 0; cnt 0 for (int i=0; i<arr.length; i++) {
            if (arr[i]=='7') cnt++;
        } int i=0; int i=0; i 0 i<arr.length i arr.length arr arr.length i++ i++ i {
            if (arr[i]=='7') cnt++;
        } {
            if (arr[i]=='7') cnt++;
        } if (arr[i]=='7') cnt++; arr[i]=='7' arr[i] arr i '7' cnt++ cnt if (cnt==0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } cnt==0 cnt 0 {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" public class Main {

    Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();
        int cnt = 0;

        for (int i=0; i<arr.length; i++) {
            if (arr[i]=='7') cnt++;
        }

        if (cnt==0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }


    }
} public class Main {

    Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();
        int cnt = 0;

        for (int i=0; i<arr.length; i++) {
            if (arr[i]=='7') cnt++;
        }

        if (cnt==0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }


    }
} Main
import java.util.*;

public class Main {

    Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();
        int cnt = 0;

        for (int i=0; i<arr.length; i++) {
            if (arr[i]=='7') cnt++;
        }

        if (cnt==0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }


    }
}
