#include <bits/stdc++.h>
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);	
    
    string s;
    cin >> s;
    bool a = false;
    for(char c: s) if(c == '7') a = ture;
    
    cout << a ? "Yes" : "No";
    
    
    return 0;
}