#include <iostream>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <cstring>
#include <stack>
#include <unordered_set>
using namespace std;

int main(){
    string s;
    cin >> s;
    cout << (s[0] == '7' || s[1] == '7' || s[2] == '7' ? "Yes" : "No") << '\n';
}
