#include <bits/stdc++.h>
using namespace std;

int main() {
  string c;
  cin>>c;
  if(c.at(0)=='7'){
    cout<<"Yes"<<endl;
  }else if(c.at(1)=='7'){
    cout<<"Yes"<<endl;
  }else if(c.at(2)=='7'){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  
  
}

