import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean hasNextInt = scanner.hasNextInt();
        int x = scanner.nextInt();
        if(hasNextInt) {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        }
        scanner.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean hasNextInt = scanner.hasNextInt();
        int x = scanner.nextInt();
        if(hasNextInt) {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        }
        scanner.close();
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean hasNextInt = scanner.hasNextInt();
        int x = scanner.nextInt();
        if(hasNextInt) {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        }
        scanner.close();
    } main {
        Scanner scanner = new Scanner(System.in);
        boolean hasNextInt = scanner.hasNextInt();
        int x = scanner.nextInt();
        if(hasNextInt) {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        }
        scanner.close();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) boolean hasNextInt = scanner.hasNextInt(); hasNextInt scanner.hasNextInt() scanner.hasNextInt scanner int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner if(hasNextInt) {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        } hasNextInt {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        } while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            } x > 0 x 0 {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            } if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                } x % 10 == 7 x % 10 x 10 7 {
                    System.out.println("Yes");
                    break;
                } System.out.println("Yes") System.out.println System.out System System.out "Yes" break; {
                    x /= 10;
                } x /= 10 x 10 if(x == 0) {
                    System.out.println("No");
                } x == 0 x 0 {
                    System.out.println("No");
                } System.out.println("No") System.out.println System.out System System.out "No" scanner.close() scanner.close scanner String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean hasNextInt = scanner.hasNextInt();
        int x = scanner.nextInt();
        if(hasNextInt) {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        }
        scanner.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean hasNextInt = scanner.hasNextInt();
        int x = scanner.nextInt();
        if(hasNextInt) {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        }
        scanner.close();
    }
} Main
import java.util.Scanner;

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