const main = stdin => {
  const input = stdin.trim().split('\n')
  const N = input[0]
  const sum = N.split('').map(x => parseInt(x)).reduce((a, b) => a + b)
  console.log(N % sum === 0 ? 'Yes' : 'No')
}


// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
