import java.util.Scanner;

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

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