'use strict';

function Main(input) {
	let N = Number(input);
  let x = parseInt(N / 100);
  let y = parseInt((N - x * 100) / 10);
  let z = N - x * 100 - y * 10;
  
  if (x === 7 || y === 7 || z === 7) {
    console.log("Yes");
  } else {
    console.log("No");
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));