#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <stack>
#include <queue>
#include <vector>
#include <map>
#include <set>
#include <unordered_set>
#include <unordered_map>
#define ll long long
#define fi first
#define se second
#define pb push_back
#define me memset
const int N = 1e6 + 10;
const int mod = 1e9 + 7;
using namespace std;
typedef pair<int,int> PII;
typedef pair<long,long> PLL;

string s;

int main() {
    ios::sync_with_stdio(false);
    cin>>s;
    bool flag=0;
    for(int i=0;i<3;++i){
        if(s[i]=='7'){
            flag=1;
            break;
        }
    }
    if(flag) printf("Yes\n");
    else printf("No\n");





    return 0;
}
