#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

void main(void)
{
	int a;
	scanf("%d", &a);
	if ((100 <= a && a <= 999) && ((a / 100 == 7) || (a / 10 == 7) || (a % 10 == 7)))
	{
		printf("Yes\n");
	}
	else
	{
		printf("No\n");
	}
}