import java.util.*;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        boolean flg = false;
        for(int i=0;i<3;i++) {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        }
        if (flg == false) {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        boolean flg = false;
        for(int i=0;i<3;i++) {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        }
        if (flg == false) {
            System.out.println("No");
        }
    }
} Main // 変数一覧
    int n; n public static void main(String[] args) {
        Main main = new Main();
        main.run();
    } main {
        Main main = new Main();
        main.run();
    } Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        sc.close();

        // 解答処理
        solve();
    } run {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        sc.close();

        // 解答処理
        solve();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc sc.close() sc.close sc solve() solve private void solve() {
        boolean flg = false;
        for(int i=0;i<3;i++) {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        }
        if (flg == false) {
            System.out.println("No");
        }
    } solve {
        boolean flg = false;
        for(int i=0;i<3;i++) {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        }
        if (flg == false) {
            System.out.println("No");
        }
    } boolean flg = false; flg false for(int i=0;i<3;i++) {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        } {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        } if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            } n % 10 == 7 n % 10 n 10 7 {
                System.out.println("Yes");
                flg = true;
                break;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" flg = true flg true break; n /= 10 n 10 if (flg == false) {
            System.out.println("No");
        } flg == false flg false {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        boolean flg = false;
        for(int i=0;i<3;i++) {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        }
        if (flg == false) {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        boolean flg = false;
        for(int i=0;i<3;i++) {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        }
        if (flg == false) {
            System.out.println("No");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        boolean flg = false;
        for(int i=0;i<3;i++) {
            if (n % 10 == 7) {
                System.out.println("Yes");
                flg = true;
                break;
            }    
            n /= 10;
        }
        if (flg == false) {
            System.out.println("No");
        }
    }
}