import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;

public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			List<String> ans = Arrays.asList(chr);

			System.out.println(ans.contains("7")?"Yes":"No");
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.List; List java.util public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			List<String> ans = Arrays.asList(chr);

			System.out.println(ans.contains("7")?"Yes":"No");
		}
	}
} Main public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			List<String> ans = Arrays.asList(chr);

			System.out.println(ans.contains("7")?"Yes":"No");
		}
	} main {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			List<String> ans = Arrays.asList(chr);

			System.out.println(ans.contains("7")?"Yes":"No");
		}
	} try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			List<String> ans = Arrays.asList(chr);

			System.out.println(ans.contains("7")?"Yes":"No");
		} {

			String in = br.readLine();
			String chr[] = in.split("");
			List<String> ans = Arrays.asList(chr);

			System.out.println(ans.contains("7")?"Yes":"No");
		} BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)) new BufferedReader(
				new InputStreamReader(System.in)) String in = br.readLine(); in br.readLine() br.readLine br String chr[] = in.split(""); chr in.split("") in.split in "" List<String> ans = Arrays.asList(chr); ans Arrays.asList(chr) Arrays.asList Arrays chr System.out.println(ans.contains("7")?"Yes":"No") System.out.println System.out System System.out ans.contains("7")?"Yes":"No" ans.contains("7") ans.contains ans "7" "Yes" "No" String[] args args public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			List<String> ans = Arrays.asList(chr);

			System.out.println(ans.contains("7")?"Yes":"No");
		}
	}
} public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			List<String> ans = Arrays.asList(chr);

			System.out.println(ans.contains("7")?"Yes":"No");
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;

public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			List<String> ans = Arrays.asList(chr);

			System.out.println(ans.contains("7")?"Yes":"No");
		}
	}
}