import java.util.*;
import java.lang.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String n = String.valueOf(sc.nextInt());
        
        int sum = 0;
        for (int i = 0; i < n.length(); i++) {
            sum += Integer.parseInt(n.substring(i, i + 1));
        }
        boolean ans = false;
        if (Integer.parseInt(n) % sum == 0) {
            ans = true;
        }
        System.out.println(ans ? "Yes":"No");
    }
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String n = String.valueOf(sc.nextInt());
        
        int sum = 0;
        for (int i = 0; i < n.length(); i++) {
            sum += Integer.parseInt(n.substring(i, i + 1));
        }
        boolean ans = false;
        if (Integer.parseInt(n) % sum == 0) {
            ans = true;
        }
        System.out.println(ans ? "Yes":"No");
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String n = String.valueOf(sc.nextInt());
        
        int sum = 0;
        for (int i = 0; i < n.length(); i++) {
            sum += Integer.parseInt(n.substring(i, i + 1));
        }
        boolean ans = false;
        if (Integer.parseInt(n) % sum == 0) {
            ans = true;
        }
        System.out.println(ans ? "Yes":"No");
    } main {
        Scanner sc = new Scanner(System.in);
        String n = String.valueOf(sc.nextInt());
        
        int sum = 0;
        for (int i = 0; i < n.length(); i++) {
            sum += Integer.parseInt(n.substring(i, i + 1));
        }
        boolean ans = false;
        if (Integer.parseInt(n) % sum == 0) {
            ans = true;
        }
        System.out.println(ans ? "Yes":"No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = String.valueOf(sc.nextInt()); n String.valueOf(sc.nextInt()) String.valueOf String sc.nextInt() sc.nextInt sc int sum = 0; sum 0 for (int i = 0; i < n.length(); i++) {
            sum += Integer.parseInt(n.substring(i, i + 1));
        } int i = 0; int i = 0; i 0 i < n.length() i n.length() n.length n i++ i++ i {
            sum += Integer.parseInt(n.substring(i, i + 1));
        } {
            sum += Integer.parseInt(n.substring(i, i + 1));
        } sum += Integer.parseInt(n.substring(i, i + 1)) sum Integer.parseInt(n.substring(i, i + 1)) Integer.parseInt Integer n.substring(i, i + 1) n.substring n i i + 1 i 1 boolean ans = false; ans false if (Integer.parseInt(n) % sum == 0) {
            ans = true;
        } Integer.parseInt(n) % sum == 0 Integer.parseInt(n) % sum Integer.parseInt(n) Integer.parseInt Integer n sum 0 {
            ans = true;
        } ans = true ans true System.out.println(ans ? "Yes":"No") System.out.println System.out System System.out ans ? "Yes":"No" ans "Yes" "No" String args[] args public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String n = String.valueOf(sc.nextInt());
        
        int sum = 0;
        for (int i = 0; i < n.length(); i++) {
            sum += Integer.parseInt(n.substring(i, i + 1));
        }
        boolean ans = false;
        if (Integer.parseInt(n) % sum == 0) {
            ans = true;
        }
        System.out.println(ans ? "Yes":"No");
    }
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String n = String.valueOf(sc.nextInt());
        
        int sum = 0;
        for (int i = 0; i < n.length(); i++) {
            sum += Integer.parseInt(n.substring(i, i + 1));
        }
        boolean ans = false;
        if (Integer.parseInt(n) % sum == 0) {
            ans = true;
        }
        System.out.println(ans ? "Yes":"No");
    }
} Main
import java.util.*;
import java.lang.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String n = String.valueOf(sc.nextInt());
        
        int sum = 0;
        for (int i = 0; i < n.length(); i++) {
            sum += Integer.parseInt(n.substring(i, i + 1));
        }
        boolean ans = false;
        if (Integer.parseInt(n) % sum == 0) {
            ans = true;
        }
        System.out.println(ans ? "Yes":"No");
    }
}
