import std.stdio, std.conv, std.string, std.algorithm,
       std.math, std.array, std.container, std.typecons;

void main() {
  string s = readln.chomp;
  if(s[0]=='7' || s[1]=='7' || s[2]=='7') writeln("Yes");
  else writeln("No");
}

