program problemA
  implicit none

integer :: S, L, R
integer :: N, m, yr, a,b,c


read(*,*) N

a=int(N/100)
N=N-100*int(N/100)
b=int(N/10)
N=N-10*int(N/10)
c=N

if (a==7) then
  write(*,*) 'Yes'
  stop
else if (b==7) then
  write(*,*) 'Yes'
  stop
else if (c==7) then
  write(*,*) 'Yes'
  stop
else
  write(*,*) 'No'
end if



stop
end program
