
#include <iostream>
#include <algorithm>
#include <deque>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
#include <string>
#include <iostream>
    using namespace std;
    int main() {
        string s, ans = "No";
        cin >> s;
        for (auto c : s) {
            if (c == '7')
                ans = "Yes";
        }
        cout << ans << endl;
    }
  