#include <bits/stdc++.h>
using namespace std;
 
int main() 
{
	int N;
	cin >> N;
	
	bool b = false;
	b |= ((N % 10) == 7);
	N /= 10;
	b |= ((N % 10) == 7);
	N /= 10;
	b |= ((N % 10) == 7);
	
	cout << (b ? "Yes" : "No") << endl;
	
	return 0;
}