#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define ll long long 
using namespace std;
int main(){
  int a;
  cin >>a;
  int b=a/100;
  int c=(a%100)/10;
  int d=a%10;
  if(b==7||c==7||d==7){
    cout <<"Yes"<<endl;
  }else{
    cout <<"No"<<endl;
  }
}