#include <bits/stdc++.h>
int main(void) {
  int n, m, s;
  m = 10;
  scanf("%d", &n);
  for (int i = 1; i < 10; i++) {
    s += n % m * 10 / m;
    m *= 10;
  }
  if (n % s == 0) {
    printf("yes");
  } else {
    printf("no");
  }
}
