/* 162-A.cpp
 *     Created on : Apr 12, 2020 
 *     Time       : 5:59:46 PM
 *     Author     : null_ptr
 */

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

int main()
{
	string str;
	cin>>str;
	bool chk=false;
	for(int i=0;i<(int)str.size();++i)
		if(str[i]=='7')chk=true;

	if(chk)cout<<"Yes\n";
	else cout<<"No\n";
}
