
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int data = scan.nextInt();
		boolean b = true;
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i<3; i ++){
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		}
		if(b==true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int data = scan.nextInt();
		boolean b = true;
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i<3; i ++){
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		}
		if(b==true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int data = scan.nextInt();
		boolean b = true;
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i<3; i ++){
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		}
		if(b==true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int data = scan.nextInt();
		boolean b = true;
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i<3; i ++){
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		}
		if(b==true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int data = scan.nextInt(); data scan.nextInt() scan.nextInt scan boolean b = true; b true ArrayList<Integer> a = new ArrayList<>(); a new ArrayList<>() for(int i = 0; i<3; i ++){
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		} int i = 0; int i = 0; i 0 i<3 i 3 i ++ i ++ i {
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		} {
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		} int x=data%10; x data%10 data 10 a.add(x) a.add a x data=data/10 data data/10 data 10 if(a.get(i)==7) {
			b=true;
			break;
		} a.get(i)==7 a.get(i) a.get a i 7 {
			b=true;
			break;
		} b=true b true break; b=false b false if(b==true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} b==true b true {
			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" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int data = scan.nextInt();
		boolean b = true;
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i<3; i ++){
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		}
		if(b==true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int data = scan.nextInt();
		boolean b = true;
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i<3; i ++){
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		}
		if(b==true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main

import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int data = scan.nextInt();
		boolean b = true;
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i<3; i ++){
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		}
		if(b==true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
}