import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int count = 0;
		int num;
		/*String con;

		con = Integer.toString(N);

		for(int i = 0; i < con.length(); i++){
			if(con.charAt(i) == 7){
				++count;
			}
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}*/

		for(int i = 1; i <= N; i++ ){
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int count = 0;
		int num;
		/*String con;

		con = Integer.toString(N);

		for(int i = 0; i < con.length(); i++){
			if(con.charAt(i) == 7){
				++count;
			}
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}*/

		for(int i = 1; i <= N; i++ ){
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
} Main public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int count = 0;
		int num;
		/*String con;

		con = Integer.toString(N);

		for(int i = 0; i < con.length(); i++){
			if(con.charAt(i) == 7){
				++count;
			}
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}*/

		for(int i = 1; i <= N; i++ ){
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	} main {
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int count = 0;
		int num;
		/*String con;

		con = Integer.toString(N);

		for(int i = 0; i < con.length(); i++){
			if(con.charAt(i) == 7){
				++count;
			}
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}*/

		for(int i = 1; i <= N; i++ ){
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	} Scanner ob = new Scanner(System.in); ob new Scanner(System.in) int N = ob.nextInt(); N ob.nextInt() ob.nextInt ob int count = 0; count 0 int num; num for(int i = 1; i <= N; i++ ){
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		} {
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		} num = N % 10 num N % 10 N 10 if(num == 7){
				++count;
			} num == 7 num 7 {
				++count;
			} ++count count N /= 10 N 10 if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		} count > 0 count 0 {
			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{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int count = 0;
		int num;
		/*String con;

		con = Integer.toString(N);

		for(int i = 0; i < con.length(); i++){
			if(con.charAt(i) == 7){
				++count;
			}
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}*/

		for(int i = 1; i <= N; i++ ){
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
} public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int count = 0;
		int num;
		/*String con;

		con = Integer.toString(N);

		for(int i = 0; i < con.length(); i++){
			if(con.charAt(i) == 7){
				++count;
			}
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}*/

		for(int i = 1; i <= N; i++ ){
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
} Main
import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int count = 0;
		int num;
		/*String con;

		con = Integer.toString(N);

		for(int i = 0; i < con.length(); i++){
			if(con.charAt(i) == 7){
				++count;
			}
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}*/

		for(int i = 1; i <= N; i++ ){
			num = N % 10;
			if(num == 7){
				++count;
			}

			N /= 10;
		}
		if(count > 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
}
