
//

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// const int INF = 2147483647;
// const ll INF = 9223372036854775807;
// const ll MOD = 1e9 + 7;

int main(){
	string N;
	cin >> N;

	string ans;
	if (N[0] == '7' || N[1] == '7' || N[2] == '7') ans = "Yes";
	else ans = "No";

	cout << ans << endl;

	return 0;
}