#include <bits/stdc++.h>
#define all(x) begin(x), end(x)
#define _ << ' ' <<
using namespace std;
using ll = long long;


int main()
{
    string s;
    cin >> s;
    for (char c : s)
        if (c == '7')
            return cout << "Yes", 0;
    cout << "No";
}
