#include <iostream>
#include <cmath>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <tuple>
#include <string>
#include <cstring>
#include <algorithm>
typedef long long ll;
using namespace std;

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

    string num;
    cin >> num;
    bool flag=false;
    for (char c : num) {
        if (c=='7') flag=true;
    }
    if(flag) cout<<"Yes";
    else cout<<"No";

}
