#include <stdio.h>
#include <algorithm>
#include <string>
#include <cmath>
using namespace std;


int main() {

    cin.tie(0);
    ios::sync_with_stdio(false);
 
    int n, tmp1, tmp2;
    cin >> n;
    string ans="No";
    tmp1 = n % 10;
    tmp2 = n % 100;

    if (n / 100 == 7){
      ans = "Yes";
    }

    if (tmp2 / 10 == 7){
      ans = "Yes";
    }

    if (tmp1 / 10 == 7){
      ans = "Yes";
    }

    cout << ans;    
}
