function main(input) {
  input=input.trim();
  var n=input.split("")
  var sum  = function(arr) {
    var sum = 0;
    for (var i=0,len=arr.length; i<len; ++i) {
        sum += Number(arr[i]);
    };
    return sum;
  };
  if(Number(input)%sum(n)==0){
    console.log("Yes");
  }else{
    console.log("No");
  }
}



main(require('fs').readFileSync('/dev/stdin', 'utf8'));