import java.io.IOException;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int N = Integer.parseInt(s);

            int sn = 0;

            for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            }

            System.out.println(N % sn == 0 ? "Yes" : "No");
        }
    }
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int N = Integer.parseInt(s);

            int sn = 0;

            for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            }

            System.out.println(N % sn == 0 ? "Yes" : "No");
        }
    }
} Main public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int N = Integer.parseInt(s);

            int sn = 0;

            for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            }

            System.out.println(N % sn == 0 ? "Yes" : "No");
        }
    } main {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int N = Integer.parseInt(s);

            int sn = 0;

            for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            }

            System.out.println(N % sn == 0 ? "Yes" : "No");
        }
    } try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int N = Integer.parseInt(s);

            int sn = 0;

            for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            }

            System.out.println(N % sn == 0 ? "Yes" : "No");
        } {
            final String s = reader.readLine();
            final int N = Integer.parseInt(s);

            int sn = 0;

            for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            }

            System.out.println(N % sn == 0 ? "Yes" : "No");
        } BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in)) BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in)) new BufferedReader(
                new InputStreamReader(System.in)) final String s = reader.readLine(); s reader.readLine() reader.readLine reader final int N = Integer.parseInt(s); N Integer.parseInt(s) Integer.parseInt Integer s int sn = 0; sn 0 for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            } int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
                sn += Character.getNumericValue(s.charAt(i));
            } {
                sn += Character.getNumericValue(s.charAt(i));
            } sn += Character.getNumericValue(s.charAt(i)) sn Character.getNumericValue(s.charAt(i)) Character.getNumericValue Character s.charAt(i) s.charAt s i System.out.println(N % sn == 0 ? "Yes" : "No") System.out.println System.out System System.out N % sn == 0 ? "Yes" : "No" N % sn == 0 N % sn N sn 0 "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int N = Integer.parseInt(s);

            int sn = 0;

            for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            }

            System.out.println(N % sn == 0 ? "Yes" : "No");
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int N = Integer.parseInt(s);

            int sn = 0;

            for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            }

            System.out.println(N % sn == 0 ? "Yes" : "No");
        }
    }
} Main
import java.io.IOException;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();
            final int N = Integer.parseInt(s);

            int sn = 0;

            for (int i = 0; i < s.length(); i++) {
                sn += Character.getNumericValue(s.charAt(i));
            }

            System.out.println(N % sn == 0 ? "Yes" : "No");
        }
    }
}
