#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"s = input()\n"
"a = 0\n"
"for i in s:\n"
"    a += int(i)\n"
"if int(s) % a == 0:\n"
"    print('Yes')\n"
"else:\n"
"    print('No')\n"
"\"";
  system(s);
  return 0;
}            