program ABC080B
    implicit none
    integer(8)::N,N1
    integer(8)::d_sum=0
    read(5,*)N

    N1=N
    do
        d_sum=d_sum+mod(N1,10)
        N1=N1/10
        if(N1==0)then
            exit
        end if
    end do

    if(mod(N,d_sum)==0)then
        print'(A)',"Yes"
    else
        print'(A)',"No"
    end if
    
end program ABC080B