import java.util.*;

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

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        int num = Integer.parseInt(str);
        int b = 0;
        char[] ch = str.toCharArray();
        for(int i = 0; i < str.length(); i++){
            int a = Character.getNumericValue(ch[i]);
            b += a;
        }
        if(num % b == 0){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}