#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

void solve(){
  string s; cin >> s;
  string ans = "No";
  for(int i = 0; i < s.size(); i++){
    if(s[i] == '7') ans = "Yes";
  }
  cout << ans << endl;
  return;
}
int main(){
  solve();
  return 0;
}
