#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char num[3];
  cin >> num;
  if(num[0] == '7' || num[1] == '7' || num[2] == '7'){
  cout << "Yes" << endl;
  }
  else{
  cout << "No" << endl;
  }
  
}