function main(input) {
  var element = parseInt(input, 10);
  var denominatorArray = input.split('');
  var denominator = 0;
  
  for(var i=0; i< denominatorArray.length ;i++){
    denominatorArray[i] = parseInt(denominatorArray[i], 10);
    denominator += denominatorArray[i];
  }
  if(Math.round(element / denominator) == element / denominator) console.log('Yes');
  else console.log('No');
}

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