'use strict';
function main(input) {
  //input = input.split("\n");
  //const a = input[0];
  console.log(input.contains("7") ? "Yes" : "No");
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
