import java.util.Scanner;

public class Main {
    private static final char SEVEN = '7';
    
    private static final String YES = "Yes";
    
    private static final String NO = "No";

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next().trim();
        boolean lucky = false;
        
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        }
        
        if (lucky) {
            System.out.println(YES);
        } else {
            System.out.println(NO);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    private static final char SEVEN = '7';
    
    private static final String YES = "Yes";
    
    private static final String NO = "No";

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next().trim();
        boolean lucky = false;
        
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        }
        
        if (lucky) {
            System.out.println(YES);
        } else {
            System.out.println(NO);
        }
    }
} Main private static final char SEVEN = '7'; SEVEN '7' private static final String YES = "Yes"; YES "Yes" private static final String NO = "No"; NO "No" public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next().trim();
        boolean lucky = false;
        
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        }
        
        if (lucky) {
            System.out.println(YES);
        } else {
            System.out.println(NO);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next().trim();
        boolean lucky = false;
        
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        }
        
        if (lucky) {
            System.out.println(YES);
        } else {
            System.out.println(NO);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next().trim(); s sc.next().trim() sc.next().trim sc.next() sc.next sc boolean lucky = false; lucky false for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        } {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        } if (s.charAt(i) == SEVEN) {
                lucky = true;
            } s.charAt(i) == SEVEN s.charAt(i) s.charAt s i SEVEN {
                lucky = true;
            } lucky = true lucky true if (lucky) {
            System.out.println(YES);
        } else {
            System.out.println(NO);
        } lucky {
            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 {
    private static final char SEVEN = '7';
    
    private static final String YES = "Yes";
    
    private static final String NO = "No";

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next().trim();
        boolean lucky = false;
        
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        }
        
        if (lucky) {
            System.out.println(YES);
        } else {
            System.out.println(NO);
        }
    }
} public class Main {
    private static final char SEVEN = '7';
    
    private static final String YES = "Yes";
    
    private static final String NO = "No";

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next().trim();
        boolean lucky = false;
        
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        }
        
        if (lucky) {
            System.out.println(YES);
        } else {
            System.out.println(NO);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    private static final char SEVEN = '7';
    
    private static final String YES = "Yes";
    
    private static final String NO = "No";

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next().trim();
        boolean lucky = false;
        
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == SEVEN) {
                lucky = true;
            }
        }
        
        if (lucky) {
            System.out.println(YES);
        } else {
            System.out.println(NO);
        }
    }
}