import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    int ans = 0;
    String[]b = a.split("");
    for(int i = 0; i < b.length; i++){
      ans = ans + Integer.parseInt(b[i]);
    }
    if(Integer.parseInt(a) % ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}
     import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    int ans = 0;
    String[]b = a.split("");
    for(int i = 0; i < b.length; i++){
      ans = ans + Integer.parseInt(b[i]);
    }
    if(Integer.parseInt(a) % 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 a = sc.next();
    int ans = 0;
    String[]b = a.split("");
    for(int i = 0; i < b.length; i++){
      ans = ans + Integer.parseInt(b[i]);
    }
    if(Integer.parseInt(a) % ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    int ans = 0;
    String[]b = a.split("");
    for(int i = 0; i < b.length; i++){
      ans = ans + Integer.parseInt(b[i]);
    }
    if(Integer.parseInt(a) % ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc int ans = 0; ans 0 String[]b = a.split(""); b a.split("") a.split a "" for(int i = 0; i < b.length; i++){
      ans = ans + Integer.parseInt(b[i]);
    } int i = 0; int i = 0; i 0 i < b.length i b.length b b.length i++ i++ i {
      ans = ans + Integer.parseInt(b[i]);
    } {
      ans = ans + Integer.parseInt(b[i]);
    } ans = ans + Integer.parseInt(b[i]) ans ans + Integer.parseInt(b[i]) ans Integer.parseInt(b[i]) Integer.parseInt Integer b[i] b i if(Integer.parseInt(a) % ans == 0){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    } Integer.parseInt(a) % ans == 0 Integer.parseInt(a) % ans Integer.parseInt(a) Integer.parseInt Integer a 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
import java.util.*;

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