function Main(input) {
	var s = parseInt(input, 10);
    var array = input.sprit('');
	var sum = 0;
  
	for(var i=0; i<array.length; i++){
		sum += Number(array[i]);
	}
	if(Number(s) % sum == 0){
		console.log('Yes');
	} else {
		console.log('No');
	}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));