import java.util.Scanner;

public class Main {
    // https:// atcoder.jp/contests/abc101/tasks/abc101_b
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        char[] inputCharArray = input.toCharArray();

        int sn = 0;
        for (int i = 0; i < inputCharArray.length; i++) {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        }

        String answer = (double) Integer.parseInt(input) % sn == 0 ? "Yes" : "No";

        System.out.println(answer);

        scan.close();

    }

} import java.util.Scanner; Scanner java.util public class Main {
    // https:// atcoder.jp/contests/abc101/tasks/abc101_b
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        char[] inputCharArray = input.toCharArray();

        int sn = 0;
        for (int i = 0; i < inputCharArray.length; i++) {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        }

        String answer = (double) Integer.parseInt(input) % sn == 0 ? "Yes" : "No";

        System.out.println(answer);

        scan.close();

    }

} Main // https:// atcoder.jp/contests/abc101/tasks/abc101_b
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        char[] inputCharArray = input.toCharArray();

        int sn = 0;
        for (int i = 0; i < inputCharArray.length; i++) {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        }

        String answer = (double) Integer.parseInt(input) % sn == 0 ? "Yes" : "No";

        System.out.println(answer);

        scan.close();

    } main {

        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        char[] inputCharArray = input.toCharArray();

        int sn = 0;
        for (int i = 0; i < inputCharArray.length; i++) {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        }

        String answer = (double) Integer.parseInt(input) % sn == 0 ? "Yes" : "No";

        System.out.println(answer);

        scan.close();

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String input = scan.next(); input scan.next() scan.next scan char[] inputCharArray = input.toCharArray(); inputCharArray input.toCharArray() input.toCharArray input int sn = 0; sn 0 for (int i = 0; i < inputCharArray.length; i++) {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        } int i = 0; int i = 0; i 0 i < inputCharArray.length i inputCharArray.length inputCharArray inputCharArray.length i++ i++ i {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        } {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        } sn = sn + (int) Character.getNumericValue(inputCharArray[i]) sn sn + (int) Character.getNumericValue(inputCharArray[i]) sn (int) Character.getNumericValue(inputCharArray[i]) Character.getNumericValue Character inputCharArray[i] inputCharArray i String answer = (double) Integer.parseInt(input) % sn == 0 ? "Yes" : "No"; answer (double) Integer.parseInt(input) % sn == 0 ? "Yes" : "No" (double) Integer.parseInt(input) % sn == 0 (double) Integer.parseInt(input) % sn (double) Integer.parseInt(input) Integer.parseInt Integer input sn 0 "Yes" "No" System.out.println(answer) System.out.println System.out System System.out answer scan.close() scan.close scan String[] args args public class Main {
    // https:// atcoder.jp/contests/abc101/tasks/abc101_b
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        char[] inputCharArray = input.toCharArray();

        int sn = 0;
        for (int i = 0; i < inputCharArray.length; i++) {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        }

        String answer = (double) Integer.parseInt(input) % sn == 0 ? "Yes" : "No";

        System.out.println(answer);

        scan.close();

    }

} public class Main {
    // https:// atcoder.jp/contests/abc101/tasks/abc101_b
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        char[] inputCharArray = input.toCharArray();

        int sn = 0;
        for (int i = 0; i < inputCharArray.length; i++) {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        }

        String answer = (double) Integer.parseInt(input) % sn == 0 ? "Yes" : "No";

        System.out.println(answer);

        scan.close();

    }

} Main
import java.util.Scanner;

public class Main {
    // https:// atcoder.jp/contests/abc101/tasks/abc101_b
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        String input = scan.next();
        char[] inputCharArray = input.toCharArray();

        int sn = 0;
        for (int i = 0; i < inputCharArray.length; i++) {
            sn = sn + (int) Character.getNumericValue(inputCharArray[i]);
        }

        String answer = (double) Integer.parseInt(input) % sn == 0 ? "Yes" : "No";

        System.out.println(answer);

        scan.close();

    }

}
