#include <bits/stdc++.h>
int main() {
  int N, Sn, x, y;
  printf("整数N:");
  if (scanf("%d", &N) == 1)
    ;
  y = N;
  while (N) {
    x = N % 10;
    Sn += x;
    N /= 10;
  }
  printf("%d\n", Sn);
  if (y % Sn == 0)
    printf("yes\n");
  else
    printf("No\n");
  return 1;
}
