import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String[] sn = n.split("",0);
    int sum = 0;
    for(int i = 0;i < sn.length;i++){
      sum += Integer.parseInt(sn[i]);
    }
    int ans = Integer.parseInt(n) % sum;
    if(ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String[] sn = n.split("",0);
    int sum = 0;
    for(int i = 0;i < sn.length;i++){
      sum += Integer.parseInt(sn[i]);
    }
    int ans = Integer.parseInt(n) % sum;
    if(ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String[] sn = n.split("",0);
    int sum = 0;
    for(int i = 0;i < sn.length;i++){
      sum += Integer.parseInt(sn[i]);
    }
    int ans = Integer.parseInt(n) % sum;
    if(ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String[] sn = n.split("",0);
    int sum = 0;
    for(int i = 0;i < sn.length;i++){
      sum += Integer.parseInt(sn[i]);
    }
    int ans = Integer.parseInt(n) % sum;
    if(ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.next(); n sc.next() sc.next sc String[] sn = n.split("",0); sn n.split("",0) n.split n "" 0 int sum = 0; sum 0 for(int i = 0;i < sn.length;i++){
      sum += Integer.parseInt(sn[i]);
    } int i = 0; int i = 0; i 0 i < sn.length i sn.length sn sn.length i++ i++ i {
      sum += Integer.parseInt(sn[i]);
    } {
      sum += Integer.parseInt(sn[i]);
    } sum += Integer.parseInt(sn[i]) sum Integer.parseInt(sn[i]) Integer.parseInt Integer sn[i] sn i int ans = Integer.parseInt(n) % sum; ans Integer.parseInt(n) % sum Integer.parseInt(n) Integer.parseInt Integer n sum if(ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    } ans == 0 ans 0 {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String[] sn = n.split("",0);
    int sum = 0;
    for(int i = 0;i < sn.length;i++){
      sum += Integer.parseInt(sn[i]);
    }
    int ans = Integer.parseInt(n) % sum;
    if(ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String[] sn = n.split("",0);
    int sum = 0;
    for(int i = 0;i < sn.length;i++){
      sum += Integer.parseInt(sn[i]);
    }
    int ans = Integer.parseInt(n) % sum;
    if(ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String[] sn = n.split("",0);
    int sum = 0;
    for(int i = 0;i < sn.length;i++){
      sum += Integer.parseInt(sn[i]);
    }
    int ans = Integer.parseInt(n) % sum;
    if(ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}