import java.util.Scanner;

public class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		String stringN = Integer.toString(N);
		if(stringN.contains("7")) {
			System.out.println("Yes");
			}
		else if(!stringN.contains("7")) {
			System.out.println("No");
		}

}
} import java.util.Scanner; Scanner java.util public class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		String stringN = Integer.toString(N);
		if(stringN.contains("7")) {
			System.out.println("Yes");
			}
		else if(!stringN.contains("7")) {
			System.out.println("No");
		}

}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		String stringN = Integer.toString(N);
		if(stringN.contains("7")) {
			System.out.println("Yes");
			}
		else if(!stringN.contains("7")) {
			System.out.println("No");
		}

} main {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		String stringN = Integer.toString(N);
		if(stringN.contains("7")) {
			System.out.println("Yes");
			}
		else if(!stringN.contains("7")) {
			System.out.println("No");
		}

} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String stringN = Integer.toString(N); stringN Integer.toString(N) Integer.toString Integer N if(stringN.contains("7")) {
			System.out.println("Yes");
			}
		else if(!stringN.contains("7")) {
			System.out.println("No");
		} stringN.contains("7") stringN.contains stringN "7" {
			System.out.println("Yes");
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(!stringN.contains("7")) {
			System.out.println("No");
		} !stringN.contains("7") stringN.contains("7") stringN.contains stringN "7" {
			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 sc = new Scanner(System.in);

		int N = sc.nextInt();

		String stringN = Integer.toString(N);
		if(stringN.contains("7")) {
			System.out.println("Yes");
			}
		else if(!stringN.contains("7")) {
			System.out.println("No");
		}

}
} public class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		String stringN = Integer.toString(N);
		if(stringN.contains("7")) {
			System.out.println("Yes");
			}
		else if(!stringN.contains("7")) {
			System.out.println("No");
		}

}
} Main
import java.util.Scanner;

public class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		String stringN = Integer.toString(N);
		if(stringN.contains("7")) {
			System.out.println("Yes");
			}
		else if(!stringN.contains("7")) {
			System.out.println("No");
		}

}
}
