import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String  str = scan.next();
		boolean flag = false;

		if(str.charAt(0)=='7')flag=true;
		if(str.charAt(1)=='7')flag=true;
		if(str.charAt(2)=='7')flag=true;

		System.out.println((flag)?"Yes":"No");
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String  str = scan.next();
		boolean flag = false;

		if(str.charAt(0)=='7')flag=true;
		if(str.charAt(1)=='7')flag=true;
		if(str.charAt(2)=='7')flag=true;

		System.out.println((flag)?"Yes":"No");
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String  str = scan.next();
		boolean flag = false;

		if(str.charAt(0)=='7')flag=true;
		if(str.charAt(1)=='7')flag=true;
		if(str.charAt(2)=='7')flag=true;

		System.out.println((flag)?"Yes":"No");
	} main {
		Scanner scan = new Scanner(System.in);
		String  str = scan.next();
		boolean flag = false;

		if(str.charAt(0)=='7')flag=true;
		if(str.charAt(1)=='7')flag=true;
		if(str.charAt(2)=='7')flag=true;

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

		if(str.charAt(0)=='7')flag=true;
		if(str.charAt(1)=='7')flag=true;
		if(str.charAt(2)=='7')flag=true;

		System.out.println((flag)?"Yes":"No");
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String  str = scan.next();
		boolean flag = false;

		if(str.charAt(0)=='7')flag=true;
		if(str.charAt(1)=='7')flag=true;
		if(str.charAt(2)=='7')flag=true;

		System.out.println((flag)?"Yes":"No");
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String  str = scan.next();
		boolean flag = false;

		if(str.charAt(0)=='7')flag=true;
		if(str.charAt(1)=='7')flag=true;
		if(str.charAt(2)=='7')flag=true;

		System.out.println((flag)?"Yes":"No");
	}
}