import java.util.*;	
		
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int num =sc.nextInt();
				 boolean ans=false;
				 for(int i=1;i<=3;i++){
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 }
				 if(ans){
					 System.out.print("Yes");
				 }else{
					 System.out.print("No");
				 }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int num =sc.nextInt();
				 boolean ans=false;
				 for(int i=1;i<=3;i++){
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 }
				 if(ans){
					 System.out.print("Yes");
				 }else{
					 System.out.print("No");
				 }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int num =sc.nextInt();
				 boolean ans=false;
				 for(int i=1;i<=3;i++){
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 }
				 if(ans){
					 System.out.print("Yes");
				 }else{
					 System.out.print("No");
				 }
  } main {
    Scanner sc = new Scanner(System.in);
	int num =sc.nextInt();
				 boolean ans=false;
				 for(int i=1;i<=3;i++){
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 }
				 if(ans){
					 System.out.print("Yes");
				 }else{
					 System.out.print("No");
				 }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num =sc.nextInt(); num sc.nextInt() sc.nextInt sc boolean ans=false; ans false for(int i=1;i<=3;i++){
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 } int i=1; int i=1; i 1 i<=3 i 3 i++ i++ i {
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 } {
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 } if(num%10==7)
						 ans=true; num%10==7 num%10 num 10 7 ans=true ans true num=num/10 num num/10 num 10 if(ans){
					 System.out.print("Yes");
				 }else{
					 System.out.print("No");
				 } ans {
					 System.out.print("Yes");
				 } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
					 System.out.print("No");
				 } System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int num =sc.nextInt();
				 boolean ans=false;
				 for(int i=1;i<=3;i++){
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 }
				 if(ans){
					 System.out.print("Yes");
				 }else{
					 System.out.print("No");
				 }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int num =sc.nextInt();
				 boolean ans=false;
				 for(int i=1;i<=3;i++){
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 }
				 if(ans){
					 System.out.print("Yes");
				 }else{
					 System.out.print("No");
				 }
  }
} Main
import java.util.*;	
		
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	int num =sc.nextInt();
				 boolean ans=false;
				 for(int i=1;i<=3;i++){
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 }
				 if(ans){
					 System.out.print("Yes");
				 }else{
					 System.out.print("No");
				 }
  }
}
