import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		int x=input.nextInt();
		int flag=0;
		while(x!=0)
		{
			int rem=x%10;
			if(rem==7)
			{
				flag=1;
				break;
			}
			x=x/10;
				
		}
		if(flag==1)
			System.out.println("Yes");
		else
			System.out.println("No");
		input.close();
	}
	

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		int x=input.nextInt();
		int flag=0;
		while(x!=0)
		{
			int rem=x%10;
			if(rem==7)
			{
				flag=1;
				break;
			}
			x=x/10;
				
		}
		if(flag==1)
			System.out.println("Yes");
		else
			System.out.println("No");
		input.close();
	}
	

} Main public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		int x=input.nextInt();
		int flag=0;
		while(x!=0)
		{
			int rem=x%10;
			if(rem==7)
			{
				flag=1;
				break;
			}
			x=x/10;
				
		}
		if(flag==1)
			System.out.println("Yes");
		else
			System.out.println("No");
		input.close();
	} main {
		Scanner input=new Scanner(System.in);
		int x=input.nextInt();
		int flag=0;
		while(x!=0)
		{
			int rem=x%10;
			if(rem==7)
			{
				flag=1;
				break;
			}
			x=x/10;
				
		}
		if(flag==1)
			System.out.println("Yes");
		else
			System.out.println("No");
		input.close();
	} Scanner input=new Scanner(System.in); input new Scanner(System.in) int x=input.nextInt(); x input.nextInt() input.nextInt input int flag=0; flag 0 while(x!=0)
		{
			int rem=x%10;
			if(rem==7)
			{
				flag=1;
				break;
			}
			x=x/10;
				
		} x!=0 x 0 {
			int rem=x%10;
			if(rem==7)
			{
				flag=1;
				break;
			}
			x=x/10;
				
		} int rem=x%10; rem x%10 x 10 if(rem==7)
			{
				flag=1;
				break;
			} rem==7 rem 7 {
				flag=1;
				break;
			} flag=1 flag 1 break; x=x/10 x x/10 x 10 if(flag==1)
			System.out.println("Yes");
		else
			System.out.println("No"); flag==1 flag 1 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" input.close() input.close input String[] args args public class Main {

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		int x=input.nextInt();
		int flag=0;
		while(x!=0)
		{
			int rem=x%10;
			if(rem==7)
			{
				flag=1;
				break;
			}
			x=x/10;
				
		}
		if(flag==1)
			System.out.println("Yes");
		else
			System.out.println("No");
		input.close();
	}
	

} public class Main {

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		int x=input.nextInt();
		int flag=0;
		while(x!=0)
		{
			int rem=x%10;
			if(rem==7)
			{
				flag=1;
				break;
			}
			x=x/10;
				
		}
		if(flag==1)
			System.out.println("Yes");
		else
			System.out.println("No");
		input.close();
	}
	

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		int x=input.nextInt();
		int flag=0;
		while(x!=0)
		{
			int rem=x%10;
			if(rem==7)
			{
				flag=1;
				break;
			}
			x=x/10;
				
		}
		if(flag==1)
			System.out.println("Yes");
		else
			System.out.println("No");
		input.close();
	}
	

}
