import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);
    
    String N = sc.next();

    sc.close();
    
    String[] arr = N.split("");

    int n = Integer.valueOf(N);

    int sn = 0;

    for (int i = 0; i < arr.length; i++) {
      sn += Integer.valueOf(arr[i]);
    }

    if (n % sn == 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();

    sc.close();
    
    String[] arr = N.split("");

    int n = Integer.valueOf(N);

    int sn = 0;

    for (int i = 0; i < arr.length; i++) {
      sn += Integer.valueOf(arr[i]);
    }

    if (n % sn == 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();

    sc.close();
    
    String[] arr = N.split("");

    int n = Integer.valueOf(N);

    int sn = 0;

    for (int i = 0; i < arr.length; i++) {
      sn += Integer.valueOf(arr[i]);
    }

    if (n % sn == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } main {

    Scanner sc = new Scanner(System.in);
    
    String N = sc.next();

    sc.close();
    
    String[] arr = N.split("");

    int n = Integer.valueOf(N);

    int sn = 0;

    for (int i = 0; i < arr.length; i++) {
      sn += Integer.valueOf(arr[i]);
    }

    if (n % sn == 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 sc.close() sc.close sc String[] arr = N.split(""); arr N.split("") N.split N "" int n = Integer.valueOf(N); n Integer.valueOf(N) Integer.valueOf Integer N int sn = 0; sn 0 for (int i = 0; i < arr.length; i++) {
      sn += Integer.valueOf(arr[i]);
    } int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
      sn += Integer.valueOf(arr[i]);
    } {
      sn += Integer.valueOf(arr[i]);
    } sn += Integer.valueOf(arr[i]) sn Integer.valueOf(arr[i]) Integer.valueOf Integer arr[i] arr i if (n % sn == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } n % sn == 0 n % sn n sn 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();

    sc.close();
    
    String[] arr = N.split("");

    int n = Integer.valueOf(N);

    int sn = 0;

    for (int i = 0; i < arr.length; i++) {
      sn += Integer.valueOf(arr[i]);
    }

    if (n % sn == 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();

    sc.close();
    
    String[] arr = N.split("");

    int n = Integer.valueOf(N);

    int sn = 0;

    for (int i = 0; i < arr.length; i++) {
      sn += Integer.valueOf(arr[i]);
    }

    if (n % sn == 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();

    sc.close();
    
    String[] arr = N.split("");

    int n = Integer.valueOf(N);

    int sn = 0;

    for (int i = 0; i < arr.length; i++) {
      sn += Integer.valueOf(arr[i]);
    }

    if (n % sn == 0) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

}