#include <iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  bool flag = false;
  if(n%10 == 7) flag = true;
  if(n/100 == 7) flag = true;
  if(n/10%10 == 7) flag = true;

  if(flag) cout << "Yes\n";
  else cout << "No\n";
}
