function Main(input) {
    input = input.split("\n");
    const array= input[0].split('');

    let message = 'No';

    for (let i = 0, len = array.length; i < len; i++) {
        if (array[i] == '7') {
            message = 'Yes';
            break;
         }
    }

    

    console.log(message);
}

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