function main(input) {
  var numStr = input.toString(10)
  var num = 0;
  for(var i = 0; i < numStr.length; i = i + 1) {
    num += Number(numStr.slice(i, i + 1))
  }
  if(input % num == 0) {
    console.log("Yes")
  } else {
    console.log("No")
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));