program ABC162_A
  character(3)::N
  read(5,*)N
  if(N(1:1)=='7') then
     write(6,*)'Yes'
  else if(N(2:2)=='7' .or. N(3:3)=='7') then
     write(6,*) 'Yes'
  else
     write(6,*)'No'
  end if
end program ABC162_A