'use strict';
let execute = input => {
  let sum = input.split('').reduce((sum, el) => (sum += +el), 0);
  return input % sum === 0 ? 'Yes' : 'No';
};

function Main(input) {
  console.log(execute(input));
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));