
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int num = Integer.parseInt(str);
        if ((num % S(str)) == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }

    static int S(String str) {
        int result = 0;
        for (int ct = 0; ct < str.length(); ct++) {
            result += Integer.parseInt(str.charAt(ct) + "");
        }
        return result;
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int num = Integer.parseInt(str);
        if ((num % S(str)) == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }

    static int S(String str) {
        int result = 0;
        for (int ct = 0; ct < str.length(); ct++) {
            result += Integer.parseInt(str.charAt(ct) + "");
        }
        return result;
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int num = Integer.parseInt(str);
        if ((num % S(str)) == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int num = Integer.parseInt(str);
        if ((num % S(str)) == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int num = Integer.parseInt(str); num Integer.parseInt(str) Integer.parseInt Integer str if ((num % S(str)) == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } (num % S(str)) == 0 (num % S(str)) num S(str) S str 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 static int S(String str) {
        int result = 0;
        for (int ct = 0; ct < str.length(); ct++) {
            result += Integer.parseInt(str.charAt(ct) + "");
        }
        return result;
    } S {
        int result = 0;
        for (int ct = 0; ct < str.length(); ct++) {
            result += Integer.parseInt(str.charAt(ct) + "");
        }
        return result;
    } int result = 0; result 0 for (int ct = 0; ct < str.length(); ct++) {
            result += Integer.parseInt(str.charAt(ct) + "");
        } int ct = 0; int ct = 0; ct 0 ct < str.length() ct str.length() str.length str ct++ ct++ ct {
            result += Integer.parseInt(str.charAt(ct) + "");
        } {
            result += Integer.parseInt(str.charAt(ct) + "");
        } result += Integer.parseInt(str.charAt(ct) + "") result Integer.parseInt(str.charAt(ct) + "") Integer.parseInt Integer str.charAt(ct) + "" str.charAt(ct) str.charAt str ct "" return result; result String str str public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int num = Integer.parseInt(str);
        if ((num % S(str)) == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }

    static int S(String str) {
        int result = 0;
        for (int ct = 0; ct < str.length(); ct++) {
            result += Integer.parseInt(str.charAt(ct) + "");
        }
        return result;
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int num = Integer.parseInt(str);
        if ((num % S(str)) == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }

    static int S(String str) {
        int result = 0;
        for (int ct = 0; ct < str.length(); ct++) {
            result += Integer.parseInt(str.charAt(ct) + "");
        }
        return result;
    }
} Main

import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        int num = Integer.parseInt(str);
        if ((num % S(str)) == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }

    static int S(String str) {
        int result = 0;
        for (int ct = 0; ct < str.length(); ct++) {
            result += Integer.parseInt(str.charAt(ct) + "");
        }
        return result;
    }
}