#include <iostream>
using namespace std;

#define ll long long
#define ull unsigned long long

#define min(a, b) ((a) > (b) ? (b) : (a))
#define max(a, b) ((a) > (b) ? (a) : (b))

bool isPalindrome(string s) {
    string t(s.rbegin(), s.rend());
    return s == t;
}

int main(void) {
    string a;
    cin >> a;
    if(a[0] == '7' || a[1] == '7' || a[2] == '7') puts("Yes");
    else puts("No");
    return 0;
}
