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

public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        int n = in.nextInt();
        int sn =0;
        int temp = n;
        while(n>=10){
        sn = sn + n%10;
       // System.out.println(sn);
        n = n/10;
        }
        sn = sn +n;
        if(temp%sn==0) System.out.println("Yes");
        else System.out.println("No");
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        int n = in.nextInt();
        int sn =0;
        int temp = n;
        while(n>=10){
        sn = sn + n%10;
       // System.out.println(sn);
        n = n/10;
        }
        sn = sn +n;
        if(temp%sn==0) System.out.println("Yes");
        else System.out.println("No");
    }
} Main public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        int n = in.nextInt();
        int sn =0;
        int temp = n;
        while(n>=10){
        sn = sn + n%10;
       // System.out.println(sn);
        n = n/10;
        }
        sn = sn +n;
        if(temp%sn==0) System.out.println("Yes");
        else System.out.println("No");
    } main {
        Scanner in = new Scanner(System.in);
        //test cases
        int n = in.nextInt();
        int sn =0;
        int temp = n;
        while(n>=10){
        sn = sn + n%10;
       // System.out.println(sn);
        n = n/10;
        }
        sn = sn +n;
        if(temp%sn==0) System.out.println("Yes");
        else System.out.println("No");
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int sn =0; sn 0 int temp = n; temp n while(n>=10){
        sn = sn + n%10;
       // System.out.println(sn);
        n = n/10;
        } n>=10 n 10 {
        sn = sn + n%10;
       // System.out.println(sn);
        n = n/10;
        } sn = sn + n%10 sn sn + n%10 sn n%10 n 10 n = n/10 n n/10 n 10 sn = sn +n sn sn +n sn n if(temp%sn==0) System.out.println("Yes");
        else System.out.println("No"); temp%sn==0 temp%sn temp sn 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 public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        int n = in.nextInt();
        int sn =0;
        int temp = n;
        while(n>=10){
        sn = sn + n%10;
       // System.out.println(sn);
        n = n/10;
        }
        sn = sn +n;
        if(temp%sn==0) System.out.println("Yes");
        else System.out.println("No");
    }
} public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        int n = in.nextInt();
        int sn =0;
        int temp = n;
        while(n>=10){
        sn = sn + n%10;
       // System.out.println(sn);
        n = n/10;
        }
        sn = sn +n;
        if(temp%sn==0) System.out.println("Yes");
        else System.out.println("No");
    }
} Main
import java.util.*;
import java.io.*;

public class Main{

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        //test cases
        int n = in.nextInt();
        int sn =0;
        int temp = n;
        while(n>=10){
        sn = sn + n%10;
       // System.out.println(sn);
        n = n/10;
        }
        sn = sn +n;
        if(temp%sn==0) System.out.println("Yes");
        else System.out.println("No");
    }
}