program main
  implicit none
  integer :: N

  read (*,*) N

  if ( N/100 == 7 ) then
     write(*,'(a)') 'Yes'
     stop
  else if ( (N-N/100*100)/10 == 7 ) then
     write(*,'(a)') 'Yes'
     stop
  else if ( N - N/100*100 - (N-N/100*100)/10*10 == 7 ) then
     write(*,'(a)') 'Yes'
     stop
  end if
  write(*,'(a)') 'No'

end program main
