import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    boolean found = false;
		Scanner input = new Scanner(System.in);
		String s = input.next();
		for(int i=0;i<s.length();i++){
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		}
		if(!found){
		    System.out.println("No");
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    boolean found = false;
		Scanner input = new Scanner(System.in);
		String s = input.next();
		for(int i=0;i<s.length();i++){
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		}
		if(!found){
		    System.out.println("No");
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
	    boolean found = false;
		Scanner input = new Scanner(System.in);
		String s = input.next();
		for(int i=0;i<s.length();i++){
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		}
		if(!found){
		    System.out.println("No");
		}
	} main {
	    boolean found = false;
		Scanner input = new Scanner(System.in);
		String s = input.next();
		for(int i=0;i<s.length();i++){
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		}
		if(!found){
		    System.out.println("No");
		}
	} boolean found = false; found false Scanner input = new Scanner(System.in); input new Scanner(System.in) String s = input.next(); s input.next() input.next input for(int i=0;i<s.length();i++){
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		} int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		} {
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		} if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    } s.charAt(i)=='7' s.charAt(i) s.charAt s i '7' {
		        System.out.println("Yes");
		        found = true;
		    } System.out.println("Yes") System.out.println System.out System System.out "Yes" found = true found true if(found){
		        break;
		    } found {
		        break;
		    } break; if(!found){
		    System.out.println("No");
		} !found found {
		    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) throws java.lang.Exception
	{
	    boolean found = false;
		Scanner input = new Scanner(System.in);
		String s = input.next();
		for(int i=0;i<s.length();i++){
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		}
		if(!found){
		    System.out.println("No");
		}
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    boolean found = false;
		Scanner input = new Scanner(System.in);
		String s = input.next();
		for(int i=0;i<s.length();i++){
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		}
		if(!found){
		    System.out.println("No");
		}
	}
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    boolean found = false;
		Scanner input = new Scanner(System.in);
		String s = input.next();
		for(int i=0;i<s.length();i++){
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		    if(found){
		        break;
		    }
		}
		if(!found){
		    System.out.println("No");
		}
	}
}
