program ABC101B
	character(32)::N_char
	character(32)::N_digit
	integer(8)::N,i,digit_value
	integer(8)::digit_sum=0
	
	read(5,*)N
	write(N_char,*)N
	N_char=adjustl(N_char)
	
	do i=1,len_trim(N_char)
		N_digit=N_char(i:i)
		read(N_digit,*)digit_value
		digit_sum=digit_sum+digit_value
	end do
	
	if(mod(N,digit_sum)==0)then
		print'(A)',"Yes"
	else
		print'(A)',"No"
	end if
end program ABC101B
