import java.util.Scanner;
public class Main{
	  public static void main(String args[]){
	 Scanner scanner = new Scanner(System.in);

int a=scanner.nextInt();
int h=a%100;
int t=h%10;

if(a/100==7) {
	System.out.println("Yes");
}
else if(h/10==7) {
	System.out.println("Yes");
}
else if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
}

}
	  } import java.util.Scanner; Scanner java.util public class Main{
	  public static void main(String args[]){
	 Scanner scanner = new Scanner(System.in);

int a=scanner.nextInt();
int h=a%100;
int t=h%10;

if(a/100==7) {
	System.out.println("Yes");
}
else if(h/10==7) {
	System.out.println("Yes");
}
else if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
}

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

int a=scanner.nextInt();
int h=a%100;
int t=h%10;

if(a/100==7) {
	System.out.println("Yes");
}
else if(h/10==7) {
	System.out.println("Yes");
}
else if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
}

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

int a=scanner.nextInt();
int h=a%100;
int t=h%10;

if(a/100==7) {
	System.out.println("Yes");
}
else if(h/10==7) {
	System.out.println("Yes");
}
else if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
}

} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a=scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int h=a%100; h a%100 a 100 int t=h%10; t h%10 h 10 if(a/100==7) {
	System.out.println("Yes");
}
else if(h/10==7) {
	System.out.println("Yes");
}
else if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
} a/100==7 a/100 a 100 7 {
	System.out.println("Yes");
} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(h/10==7) {
	System.out.println("Yes");
}
else if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
} h/10==7 h/10 h 10 7 {
	System.out.println("Yes");
} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
} t==7 t 7 {
	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 scanner = new Scanner(System.in);

int a=scanner.nextInt();
int h=a%100;
int t=h%10;

if(a/100==7) {
	System.out.println("Yes");
}
else if(h/10==7) {
	System.out.println("Yes");
}
else if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
}

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

int a=scanner.nextInt();
int h=a%100;
int t=h%10;

if(a/100==7) {
	System.out.println("Yes");
}
else if(h/10==7) {
	System.out.println("Yes");
}
else if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
}

}
	  } Main
import java.util.Scanner;
public class Main{
	  public static void main(String args[]){
	 Scanner scanner = new Scanner(System.in);

int a=scanner.nextInt();
int h=a%100;
int t=h%10;

if(a/100==7) {
	System.out.println("Yes");
}
else if(h/10==7) {
	System.out.println("Yes");
}
else if(t==7) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
}

}
	  }