import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        String contains7 = "No";
        for (int i = 0; i < word.length(); i++) if (word.charAt(i) == '7') contains7 = "Yes";
        System.out.println(contains7);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        String contains7 = "No";
        for (int i = 0; i < word.length(); i++) if (word.charAt(i) == '7') contains7 = "Yes";
        System.out.println(contains7);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        String contains7 = "No";
        for (int i = 0; i < word.length(); i++) if (word.charAt(i) == '7') contains7 = "Yes";
        System.out.println(contains7);
    } main {
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        String contains7 = "No";
        for (int i = 0; i < word.length(); i++) if (word.charAt(i) == '7') contains7 = "Yes";
        System.out.println(contains7);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String word = sc.next(); word sc.next() sc.next sc String contains7 = "No"; contains7 "No" for (int i = 0; i < word.length(); i++) if (word.charAt(i) == '7') contains7 = "Yes"; int i = 0; int i = 0; i 0 i < word.length() i word.length() word.length word i++ i++ i if (word.charAt(i) == '7') contains7 = "Yes"; if (word.charAt(i) == '7') contains7 = "Yes"; word.charAt(i) == '7' word.charAt(i) word.charAt word i '7' contains7 = "Yes" contains7 "Yes" System.out.println(contains7) System.out.println System.out System System.out contains7 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        String contains7 = "No";
        for (int i = 0; i < word.length(); i++) if (word.charAt(i) == '7') contains7 = "Yes";
        System.out.println(contains7);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        String contains7 = "No";
        for (int i = 0; i < word.length(); i++) if (word.charAt(i) == '7') contains7 = "Yes";
        System.out.println(contains7);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String word = sc.next();
        String contains7 = "No";
        for (int i = 0; i < word.length(); i++) if (word.charAt(i) == '7') contains7 = "Yes";
        System.out.println(contains7);
    }
}