#include <iostream>
#include <string>

using namespace std;

int main(){
  int N;
  cin >> N;
  int a, b, c;
  int a1, b1, c1;

  a = N/10;
  a1 = N%10;
  b = a/10;
  b1 = a%10;
  c = b/10;
  c1 = b%10;

  string ans = "No";

  if(a1==7 || b1 == 7 || c1 == 7) ans = "Yes";

  cout << ans << endl;
    
}