import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int N2=N;
        int[] order=new int[10];
        int i=0;
        int answer=0;
        while(N!=0){
            order[i]=N%10;
            answer+=order[i];
            N/=10;
        }
        if(N2%answer==0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int N2=N;
        int[] order=new int[10];
        int i=0;
        int answer=0;
        while(N!=0){
            order[i]=N%10;
            answer+=order[i];
            N/=10;
        }
        if(N2%answer==0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int N2=N;
        int[] order=new int[10];
        int i=0;
        int answer=0;
        while(N!=0){
            order[i]=N%10;
            answer+=order[i];
            N/=10;
        }
        if(N2%answer==0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    } main {
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int N2=N;
        int[] order=new int[10];
        int i=0;
        int answer=0;
        while(N!=0){
            order[i]=N%10;
            answer+=order[i];
            N/=10;
        }
        if(N2%answer==0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int N=scan.nextInt(); N scan.nextInt() scan.nextInt scan int N2=N; N2 N int[] order=new int[10]; order new int[10] 10 int i=0; i 0 int answer=0; answer 0 while(N!=0){
            order[i]=N%10;
            answer+=order[i];
            N/=10;
        } N!=0 N 0 {
            order[i]=N%10;
            answer+=order[i];
            N/=10;
        } order[i]=N%10 order[i] order i N%10 N 10 answer+=order[i] answer order[i] order i N/=10 N 10 if(N2%answer==0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        } N2%answer==0 N2%answer N2 answer 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 scan=new Scanner(System.in);
        int N=scan.nextInt();
        int N2=N;
        int[] order=new int[10];
        int i=0;
        int answer=0;
        while(N!=0){
            order[i]=N%10;
            answer+=order[i];
            N/=10;
        }
        if(N2%answer==0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int N2=N;
        int[] order=new int[10];
        int i=0;
        int answer=0;
        while(N!=0){
            order[i]=N%10;
            answer+=order[i];
            N/=10;
        }
        if(N2%answer==0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan=new Scanner(System.in);
        int N=scan.nextInt();
        int N2=N;
        int[] order=new int[10];
        int i=0;
        int answer=0;
        while(N!=0){
            order[i]=N%10;
            answer+=order[i];
            N/=10;
        }
        if(N2%answer==0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }
}