'use strict'

function Main(input) {
  const N = Number(input);
  const Nlist = input.split('').map(x => Number(x));
  let digit = 0;

  for(let i=0; i<Nlist.length; i++) {
    digit += Nlist[i];
  }

  if(N % digit === 0) {
    console.log('Yes');
  } else {
    console.log('No');
  }

}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());