#include<bits/stdc++.h>
using namespace std;

typedef long long int llint;

int main()
{
  int n;
  cin>> n;
  int nn = n;

  int s = 0;
  while(n != 0) {
    s += n % 10;
    n /= 10;
  }
    
  if(nn % s == 0) cout<< "Yes" <<endl;
  else            cout<< "No"  <<endl;
  
  return 0;
}
