#include <iostream>
#include <algorithm>
#include <iomanip>
#include <cstring>
#include <cmath>
#include <iomanip>
#include <cctype>
#include <vector>
#include <string>
#include <limits.h>
#include <set>
#define ll long 
using namespace std;


int main()
{
ios_base::sync_with_stdio(false);

    int num;
    cin>>num;
    int d;
    int n = num;
    int count = 0;
    while(n>0)
    {
    	d = n%10;
    	if(d==7)
    	{
    		count++;
    	}
    	n = n/10;
    }
    if(count==0)
    	cout<<"No\n";
    else
    	cout<<"Yes\n";
}
