import java.util.*;

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

        int n = scan.nextInt();

        if(n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

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

        int n = scan.nextInt();

        if(n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

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

        int n = scan.nextInt();

        if(n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        scan.close();
        return;
    } main {
        Scanner scan = new Scanner(System.in);

        int n = scan.nextInt();

        if(n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        scan.close();
        return;
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan if(n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700 n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700 n % 10 == 7 n % 10 n 10 7 n % 100 - n % 10 == 70 n % 100 - n % 10 n % 100 n 100 n % 10 n 10 70 n % 1000 - n % 100 == 700 n % 1000 - n % 100 n % 1000 n 1000 n % 100 n 100 700 {
            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" scan.close() scan.close scan return; String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int n = scan.nextInt();

        if(n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

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

        int n = scan.nextInt();

        if(n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        scan.close();
        return;
    }
} Main
import java.util.*;

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

        int n = scan.nextInt();

        if(n % 10 == 7 ||
           n % 100 - n % 10 == 70 ||
           n % 1000 - n % 100 == 700) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        scan.close();
        return;
    }
}