import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String N = sc.next();
    	sc.close();
    	System.out.println(N.contains("7")?"Yes":"No");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String N = sc.next();
    	sc.close();
    	System.out.println(N.contains("7")?"Yes":"No");
    }
} Main public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String N = sc.next();
    	sc.close();
    	System.out.println(N.contains("7")?"Yes":"No");
    } main {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String N = sc.next();
    	sc.close();
    	System.out.println(N.contains("7")?"Yes":"No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc sc.close() sc.close sc System.out.println(N.contains("7")?"Yes":"No") System.out.println System.out System System.out N.contains("7")?"Yes":"No" N.contains("7") N.contains N "7" "Yes" "No" String[] args args public class Main {

    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String N = sc.next();
    	sc.close();
    	System.out.println(N.contains("7")?"Yes":"No");
    }
} public class Main {

    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String N = sc.next();
    	sc.close();
    	System.out.println(N.contains("7")?"Yes":"No");
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {

//    	File file = new File("test.txt");
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);
    	String N = sc.next();
    	sc.close();
    	System.out.println(N.contains("7")?"Yes":"No");
    }
}