import java.util.*;

public class Main {

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

    void run() {
        //入力
    	Scanner sc = new Scanner(System.in);
    	String str = sc.next();
    	for(int i = 0 ; i < 3; i++) {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	}
    	System.out.println("No");
    }
} import java.util.*; util.* java public class Main {

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

    void run() {
        //入力
    	Scanner sc = new Scanner(System.in);
    	String str = sc.next();
    	for(int i = 0 ; i < 3; i++) {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	}
    	System.out.println("No");
    }
} Main 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() {
        //入力
    	Scanner sc = new Scanner(System.in);
    	String str = sc.next();
    	for(int i = 0 ; i < 3; i++) {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	}
    	System.out.println("No");
    } run {
        //入力
    	Scanner sc = new Scanner(System.in);
    	String str = sc.next();
    	for(int i = 0 ; i < 3; i++) {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	}
    	System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc for(int i = 0 ; i < 3; i++) {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	} int i = 0 ; int i = 0 ; i 0 i < 3 i 3 i++ i++ i {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	} {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	} if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		} str.substring(i,i+1).equals("7") str.substring(i,i+1).equals str.substring(i,i+1) str.substring str i i+1 i 1 "7" {
    			System.out.println("Yes");
    			System.exit(0);
    		} System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 System.out.println("No") System.out.println System.out System System.out "No" public class Main {

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

    void run() {
        //入力
    	Scanner sc = new Scanner(System.in);
    	String str = sc.next();
    	for(int i = 0 ; i < 3; i++) {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	}
    	System.out.println("No");
    }
} public class Main {

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

    void run() {
        //入力
    	Scanner sc = new Scanner(System.in);
    	String str = sc.next();
    	for(int i = 0 ; i < 3; i++) {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	}
    	System.out.println("No");
    }
} Main
import java.util.*;

public class Main {

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

    void run() {
        //入力
    	Scanner sc = new Scanner(System.in);
    	String str = sc.next();
    	for(int i = 0 ; i < 3; i++) {
    		if(str.substring(i,i+1).equals("7")) {
    			System.out.println("Yes");
    			System.exit(0);
    		}
    	}
    	System.out.println("No");
    }
}