"use strict";
function main(input) {
  let n = input[0];

  let a = n.trim().split("");

  let judge = false; 
  for(let b of a){
    if(b === "7"){
      judge = true;
      break;
    }
  }

  console.log(judge?"Yes":"No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));