import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int count = 0;
    List<Integer> list = new ArrayList<>();
    while (n > 0) {
        list.add(n % 10);
        n /= 10;
    }
    for(int i = 0; i < list.size(); i++){
        if(list.get(i).equals(7)){
            count++;
        }
    }
    if(count > 0){
        System.out.println("Yes");
    }else{
        System.out.println("No");
    }
    
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.*; io.* java import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Iterator; Iterator java.util import java.util.List; List java.util import java.util.Collections; Collections java.util public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int count = 0;
    List<Integer> list = new ArrayList<>();
    while (n > 0) {
        list.add(n % 10);
        n /= 10;
    }
    for(int i = 0; i < list.size(); i++){
        if(list.get(i).equals(7)){
            count++;
        }
    }
    if(count > 0){
        System.out.println("Yes");
    }else{
        System.out.println("No");
    }
    
	}
} Main public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int count = 0;
    List<Integer> list = new ArrayList<>();
    while (n > 0) {
        list.add(n % 10);
        n /= 10;
    }
    for(int i = 0; i < list.size(); i++){
        if(list.get(i).equals(7)){
            count++;
        }
    }
    if(count > 0){
        System.out.println("Yes");
    }else{
        System.out.println("No");
    }
    
	} main {
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int count = 0;
    List<Integer> list = new ArrayList<>();
    while (n > 0) {
        list.add(n % 10);
        n /= 10;
    }
    for(int i = 0; i < list.size(); i++){
        if(list.get(i).equals(7)){
            count++;
        }
    }
    if(count > 0){
        System.out.println("Yes");
    }else{
        System.out.println("No");
    }
    
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int count = 0; count 0 List<Integer> list = new ArrayList<>(); list new ArrayList<>() while (n > 0) {
        list.add(n % 10);
        n /= 10;
    } n > 0 n 0 {
        list.add(n % 10);
        n /= 10;
    } list.add(n % 10) list.add list n % 10 n 10 n /= 10 n 10 for(int i = 0; i < list.size(); i++){
        if(list.get(i).equals(7)){
            count++;
        }
    } int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
        if(list.get(i).equals(7)){
            count++;
        }
    } {
        if(list.get(i).equals(7)){
            count++;
        }
    } if(list.get(i).equals(7)){
            count++;
        } list.get(i).equals(7) list.get(i).equals list.get(i) list.get list i 7 {
            count++;
        } count++ count if(count > 0){
        System.out.println("Yes");
    }else{
        System.out.println("No");
    } count > 0 count 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" final String[] args args public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int count = 0;
    List<Integer> list = new ArrayList<>();
    while (n > 0) {
        list.add(n % 10);
        n /= 10;
    }
    for(int i = 0; i < list.size(); i++){
        if(list.get(i).equals(7)){
            count++;
        }
    }
    if(count > 0){
        System.out.println("Yes");
    }else{
        System.out.println("No");
    }
    
	}
} public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int count = 0;
    List<Integer> list = new ArrayList<>();
    while (n > 0) {
        list.add(n % 10);
        n /= 10;
    }
    for(int i = 0; i < list.size(); i++){
        if(list.get(i).equals(7)){
            count++;
        }
    }
    if(count > 0){
        System.out.println("Yes");
    }else{
        System.out.println("No");
    }
    
	}
} Main
import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
public class Main {
	public static void main(final String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int count = 0;
    List<Integer> list = new ArrayList<>();
    while (n > 0) {
        list.add(n % 10);
        n /= 10;
    }
    for(int i = 0; i < list.size(); i++){
        if(list.get(i).equals(7)){
            count++;
        }
    }
    if(count > 0){
        System.out.println("Yes");
    }else{
        System.out.println("No");
    }
    
	}
}