import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String N = br.readLine();
	System.out.println(N.contains("7") ? "Yes" : "No");
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String N = br.readLine();
	System.out.println(N.contains("7") ? "Yes" : "No");
    }
} Main public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String N = br.readLine();
	System.out.println(N.contains("7") ? "Yes" : "No");
    } main {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String N = br.readLine();
	System.out.println(N.contains("7") ? "Yes" : "No");
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String N = br.readLine(); N br.readLine() br.readLine br 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 IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String N = br.readLine();
	System.out.println(N.contains("7") ? "Yes" : "No");
    }
} public class Main {
    public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String N = br.readLine();
	System.out.println(N.contains("7") ? "Yes" : "No");
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String N = br.readLine();
	System.out.println(N.contains("7") ? "Yes" : "No");
    }
}