#include <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>

std::string solve(int a)
{
  if (a % 10 == 7) return "Yes";
  if (a / 10 % 10 == 7) return "Yes";
  if (a / 100 % 10 == 7) return "Yes";
  return "No";
}

int main()
{
  int a;
  std::cin >> a;

  std::cout << std::setprecision(20);
  std::cout << solve(a) << std::endl;
}
