program abc162a
  implicit none

  integer :: n, a(3)

  read *, n

  a(1) = n/100
  a(2) = (n-a(1)*100)/10
  a(3) = ((n-a(1)*100) - a(2)*10)

  if (a(1) == 7 .or. a(2) == 7 .or. a(3) == 7) then
     print *, 'Yes'
  else
     print *, 'No'
  end if

  stop
end program abc162a