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

int main(){
  string s;
  cin >> s;
  bool judge = false;
  for (char x:s){
      if (x == '7'){
        judge = true;
        break;
      }
    }
  if (judge){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
      
}