import java.io.*;
  import java.util.*;

  class Main{
    public static void main(String[] args)throws IOException{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s=br.readLine();
        String[] t=s.split("");
        long count=0;
        for(int i=0;i<s.length();i++){
          count+=Integer.parseInt(t[i]);
        }
        long n=Long.parseLong(s);
        if((n%count)==0)
         System.out.println("Yes");
         else
          System.out.println("No");
      }
    } import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String[] args)throws IOException{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s=br.readLine();
        String[] t=s.split("");
        long count=0;
        for(int i=0;i<s.length();i++){
          count+=Integer.parseInt(t[i]);
        }
        long n=Long.parseLong(s);
        if((n%count)==0)
         System.out.println("Yes");
         else
          System.out.println("No");
      }
    } Main public static void main(String[] args)throws IOException{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s=br.readLine();
        String[] t=s.split("");
        long count=0;
        for(int i=0;i<s.length();i++){
          count+=Integer.parseInt(t[i]);
        }
        long n=Long.parseLong(s);
        if((n%count)==0)
         System.out.println("Yes");
         else
          System.out.println("No");
      } main {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s=br.readLine();
        String[] t=s.split("");
        long count=0;
        for(int i=0;i<s.length();i++){
          count+=Integer.parseInt(t[i]);
        }
        long n=Long.parseLong(s);
        if((n%count)==0)
         System.out.println("Yes");
         else
          System.out.println("No");
      } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s=br.readLine(); s br.readLine() br.readLine br String[] t=s.split(""); t s.split("") s.split s "" long count=0; count 0 for(int i=0;i<s.length();i++){
          count+=Integer.parseInt(t[i]);
        } int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
          count+=Integer.parseInt(t[i]);
        } {
          count+=Integer.parseInt(t[i]);
        } count+=Integer.parseInt(t[i]) count Integer.parseInt(t[i]) Integer.parseInt Integer t[i] t i long n=Long.parseLong(s); n Long.parseLong(s) Long.parseLong Long s if((n%count)==0)
         System.out.println("Yes");
         else
          System.out.println("No"); (n%count)==0 (n%count) n count 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.io.*;
  import java.util.*;

  class Main{
    public static void main(String[] args)throws IOException{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s=br.readLine();
        String[] t=s.split("");
        long count=0;
        for(int i=0;i<s.length();i++){
          count+=Integer.parseInt(t[i]);
        }
        long n=Long.parseLong(s);
        if((n%count)==0)
         System.out.println("Yes");
         else
          System.out.println("No");
      }
    }