#include<iostream>
#include <algorithm>
#include<string>
#include<math.h>
#include <bits/stdc++.h>
using namespace std;
int main() {
    string n;
    cin>>n;
    string ans="No";
    if(n[0]=='7')ans="Yes";
    if(n[1]=='7')ans="Yes";
    if(n[2]=='7')ans="Yes";
    cout<<ans<<endl;
    return 0;
}
