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

int main() {
  int N;
  cin >> N;
  int count=0;
  for(int i=0;i<3;i++){
  	if(N.at(i)==7){
    	count++;
    }
  }
  if(count==0){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
}