import java.util.*;

class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        String n = scan.next();
        boolean out = n.charAt(0) == '7' || n.charAt(1) == '7' || n.charAt(2) == '7';
        System.out.println(out ? "Yes" : "No");
        scan.close();
    }
    public static void main(String[] args){
        new Main().solve();
    }
} import java.util.*; util.* java class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        String n = scan.next();
        boolean out = n.charAt(0) == '7' || n.charAt(1) == '7' || n.charAt(2) == '7';
        System.out.println(out ? "Yes" : "No");
        scan.close();
    }
    public static void main(String[] args){
        new Main().solve();
    }
} Main void solve(){
        Scanner scan = new Scanner(System.in);
        String n = scan.next();
        boolean out = n.charAt(0) == '7' || n.charAt(1) == '7' || n.charAt(2) == '7';
        System.out.println(out ? "Yes" : "No");
        scan.close();
    } solve {
        Scanner scan = new Scanner(System.in);
        String n = scan.next();
        boolean out = n.charAt(0) == '7' || n.charAt(1) == '7' || n.charAt(2) == '7';
        System.out.println(out ? "Yes" : "No");
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String n = scan.next(); n scan.next() scan.next scan boolean out = n.charAt(0) == '7' || n.charAt(1) == '7' || n.charAt(2) == '7'; out n.charAt(0) == '7' || n.charAt(1) == '7' || n.charAt(2) == '7' n.charAt(0) == '7' || n.charAt(1) == '7' || n.charAt(2) == '7' n.charAt(0) == '7' n.charAt(0) n.charAt n 0 '7' n.charAt(1) == '7' n.charAt(1) n.charAt n 1 '7' n.charAt(2) == '7' n.charAt(2) n.charAt n 2 '7' System.out.println(out ? "Yes" : "No") System.out.println System.out System System.out out ? "Yes" : "No" out "Yes" "No" scan.close() scan.close scan public static void main(String[] args){
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args
import java.util.*;

class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        String n = scan.next();
        boolean out = n.charAt(0) == '7' || n.charAt(1) == '7' || n.charAt(2) == '7';
        System.out.println(out ? "Yes" : "No");
        scan.close();
    }
    public static void main(String[] args){
        new Main().solve();
    }
}
