#include <bits/stdc++.h>
int main() {
  int n, t;
  int sum = 0;
  scanf("%d", &n);
  t = n;
  while (t > 0) {
    sum += t % 10;
    printf("%d\n", sum);
    t /= 10;
  }
  if (n % sum)
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}
