import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] charArray = sc.next().toCharArray();

        for (char c: charArray) {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
} import java.io.File; File java.io import java.io.FileInputStream; FileInputStream java.io import java.io.FileNotFoundException; FileNotFoundException java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] charArray = sc.next().toCharArray();

        for (char c: charArray) {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] charArray = sc.next().toCharArray();

        for (char c: charArray) {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        }
        
        System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        char[] charArray = sc.next().toCharArray();

        for (char c: charArray) {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        }
        
        System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] charArray = sc.next().toCharArray(); charArray sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc for (char c: charArray) {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        } char c charArray {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        } {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        } if (c == '7') {
                System.out.println("Yes");
                return;
            } c == '7' c '7' {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; 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) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] charArray = sc.next().toCharArray();

        for (char c: charArray) {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] charArray = sc.next().toCharArray();

        for (char c: charArray) {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
} Main
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] charArray = sc.next().toCharArray();

        for (char c: charArray) {
            if (c == '7') {
                System.out.println("Yes");
                return;
            }
        }
        
        System.out.println("No");
    }
}
