import java.util.Scanner;
public class Main
{
	public static void main(String[] args) {
	    int digit = 0;
	    Scanner in = new Scanner(System.in);
	    int n = in.nextInt();
	    boolean no = true;
	    while(n != 0){
	        digit = n % 10;
	        if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        }
	        n= Math.floorDiv(n, 10);
	        
	    }
	    if(no == true)
	    System.out.println("No");
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args) {
	    int digit = 0;
	    Scanner in = new Scanner(System.in);
	    int n = in.nextInt();
	    boolean no = true;
	    while(n != 0){
	        digit = n % 10;
	        if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        }
	        n= Math.floorDiv(n, 10);
	        
	    }
	    if(no == true)
	    System.out.println("No");
	}
} Main public static void main(String[] args) {
	    int digit = 0;
	    Scanner in = new Scanner(System.in);
	    int n = in.nextInt();
	    boolean no = true;
	    while(n != 0){
	        digit = n % 10;
	        if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        }
	        n= Math.floorDiv(n, 10);
	        
	    }
	    if(no == true)
	    System.out.println("No");
	} main {
	    int digit = 0;
	    Scanner in = new Scanner(System.in);
	    int n = in.nextInt();
	    boolean no = true;
	    while(n != 0){
	        digit = n % 10;
	        if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        }
	        n= Math.floorDiv(n, 10);
	        
	    }
	    if(no == true)
	    System.out.println("No");
	} int digit = 0; digit 0 Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in boolean no = true; no true while(n != 0){
	        digit = n % 10;
	        if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        }
	        n= Math.floorDiv(n, 10);
	        
	    } n != 0 n 0 {
	        digit = n % 10;
	        if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        }
	        n= Math.floorDiv(n, 10);
	        
	    } digit = n % 10 digit n % 10 n 10 if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        } digit == 7 digit 7 {
	            System.out.println("Yes");
	            no = false;
	            break;
	        } System.out.println("Yes") System.out.println System.out System System.out "Yes" no = false no false break; n= Math.floorDiv(n, 10) n Math.floorDiv(n, 10) Math.floorDiv Math n 10 if(no == true)
	    System.out.println("No"); no == true no true 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) {
	    int digit = 0;
	    Scanner in = new Scanner(System.in);
	    int n = in.nextInt();
	    boolean no = true;
	    while(n != 0){
	        digit = n % 10;
	        if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        }
	        n= Math.floorDiv(n, 10);
	        
	    }
	    if(no == true)
	    System.out.println("No");
	}
} public class Main
{
	public static void main(String[] args) {
	    int digit = 0;
	    Scanner in = new Scanner(System.in);
	    int n = in.nextInt();
	    boolean no = true;
	    while(n != 0){
	        digit = n % 10;
	        if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        }
	        n= Math.floorDiv(n, 10);
	        
	    }
	    if(no == true)
	    System.out.println("No");
	}
} Main
import java.util.Scanner;
public class Main
{
	public static void main(String[] args) {
	    int digit = 0;
	    Scanner in = new Scanner(System.in);
	    int n = in.nextInt();
	    boolean no = true;
	    while(n != 0){
	        digit = n % 10;
	        if(digit == 7){
	            System.out.println("Yes");
	            no = false;
	            break;
	        }
	        n= Math.floorDiv(n, 10);
	        
	    }
	    if(no == true)
	    System.out.println("No");
	}
}
