function Main (input) {
  const inputValue = input.split(/\s/g)[0];
  const sum = inputValue.split('').map((num) => parseInt(num)).reduce((prev, current) => prev + current, 0);
  const result = parseInt(inputValue) % sum === 0 ? 'Yes' : 'No';
  console.log('%s', result);
}

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