program main
  implicit integer (a-z)
  sum=0

  read(*,*)n
  nmod=n

  do i=9,1,-1
     sum=sum+nmod/10**i
     nmod=mod(nmod,10**i)
  end do
  sum=sum+nmod

  if(mod(n,sum).eq.0) then
     write(*,*)"Yes"
  else
     write(*,*)"No"
  end if
  
end program main
