#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
int n,a,b,c;
cin >> n;
a = n / 100;
b = (n - 100*a)/10;
c = (n - (100*a + 10*b));
if(a == 7 || b == 7 || c == 7){
    cout << "Yes" << endl;
}else{
    cout << "No" << endl;
}

return 0;

}
