import java.util.Scanner;
public class Main{
	public static void main(String[] args){
    Scanner scn = new Scanner(System.in);
      String N = scn.next();
      scn.close();
      int s=0;
      for(int i = 0; i<3 ; i++){
      if(N.charAt(i) == '7'){
      s +=1;
      }
      }
  	if(s>0){
    System.out.println("Yes");
    }else{
    System.out.println("No");
    }
    }
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
    Scanner scn = new Scanner(System.in);
      String N = scn.next();
      scn.close();
      int s=0;
      for(int i = 0; i<3 ; i++){
      if(N.charAt(i) == '7'){
      s +=1;
      }
      }
  	if(s>0){
    System.out.println("Yes");
    }else{
    System.out.println("No");
    }
    }
} Main public static void main(String[] args){
    Scanner scn = new Scanner(System.in);
      String N = scn.next();
      scn.close();
      int s=0;
      for(int i = 0; i<3 ; i++){
      if(N.charAt(i) == '7'){
      s +=1;
      }
      }
  	if(s>0){
    System.out.println("Yes");
    }else{
    System.out.println("No");
    }
    } main {
    Scanner scn = new Scanner(System.in);
      String N = scn.next();
      scn.close();
      int s=0;
      for(int i = 0; i<3 ; i++){
      if(N.charAt(i) == '7'){
      s +=1;
      }
      }
  	if(s>0){
    System.out.println("Yes");
    }else{
    System.out.println("No");
    }
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String N = scn.next(); N scn.next() scn.next scn scn.close() scn.close scn int s=0; s 0 for(int i = 0; i<3 ; i++){
      if(N.charAt(i) == '7'){
      s +=1;
      }
      } int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
      if(N.charAt(i) == '7'){
      s +=1;
      }
      } {
      if(N.charAt(i) == '7'){
      s +=1;
      }
      } if(N.charAt(i) == '7'){
      s +=1;
      } N.charAt(i) == '7' N.charAt(i) N.charAt N i '7' {
      s +=1;
      } s +=1 s 1 if(s>0){
    System.out.println("Yes");
    }else{
    System.out.println("No");
    } s>0 s 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 scn = new Scanner(System.in);
      String N = scn.next();
      scn.close();
      int s=0;
      for(int i = 0; i<3 ; i++){
      if(N.charAt(i) == '7'){
      s +=1;
      }
      }
  	if(s>0){
    System.out.println("Yes");
    }else{
    System.out.println("No");
    }
    }
} public class Main{
	public static void main(String[] args){
    Scanner scn = new Scanner(System.in);
      String N = scn.next();
      scn.close();
      int s=0;
      for(int i = 0; i<3 ; i++){
      if(N.charAt(i) == '7'){
      s +=1;
      }
      }
  	if(s>0){
    System.out.println("Yes");
    }else{
    System.out.println("No");
    }
    }
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
    Scanner scn = new Scanner(System.in);
      String N = scn.next();
      scn.close();
      int s=0;
      for(int i = 0; i<3 ; i++){
      if(N.charAt(i) == '7'){
      s +=1;
      }
      }
  	if(s>0){
    System.out.println("Yes");
    }else{
    System.out.println("No");
    }
    }
}
