import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int n= scn.nextInt();
        String s = String.valueOf(n);
        int s_n=0;
        for(int i=0;i<s.length();i++){
            int num=Character.getNumericValue(s.charAt(i));
            s_n+=num;
        }
        if(n%s_n==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int n= scn.nextInt();
        String s = String.valueOf(n);
        int s_n=0;
        for(int i=0;i<s.length();i++){
            int num=Character.getNumericValue(s.charAt(i));
            s_n+=num;
        }
        if(n%s_n==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int n= scn.nextInt();
        String s = String.valueOf(n);
        int s_n=0;
        for(int i=0;i<s.length();i++){
            int num=Character.getNumericValue(s.charAt(i));
            s_n+=num;
        }
        if(n%s_n==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner scn=new Scanner(System.in);
        int n= scn.nextInt();
        String s = String.valueOf(n);
        int s_n=0;
        for(int i=0;i<s.length();i++){
            int num=Character.getNumericValue(s.charAt(i));
            s_n+=num;
        }
        if(n%s_n==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int n= scn.nextInt(); n scn.nextInt() scn.nextInt scn String s = String.valueOf(n); s String.valueOf(n) String.valueOf String n int s_n=0; s_n 0 for(int i=0;i<s.length();i++){
            int num=Character.getNumericValue(s.charAt(i));
            s_n+=num;
        } int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
            int num=Character.getNumericValue(s.charAt(i));
            s_n+=num;
        } {
            int num=Character.getNumericValue(s.charAt(i));
            s_n+=num;
        } int num=Character.getNumericValue(s.charAt(i)); num Character.getNumericValue(s.charAt(i)) Character.getNumericValue Character s.charAt(i) s.charAt s i s_n+=num s_n num if(n%s_n==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } n%s_n==0 n%s_n n s_n 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 arg[] arg
import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int n= scn.nextInt();
        String s = String.valueOf(n);
        int s_n=0;
        for(int i=0;i<s.length();i++){
            int num=Character.getNumericValue(s.charAt(i));
            s_n+=num;
        }
        if(n%s_n==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}