import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Long n = sc.nextLong();
        String[] nd = String.valueOf(n).split("");
        int sn = 0;
        for (int i = 0; i < nd.length; i++) {
            sn += Integer.parseInt(nd[i]);
        }
        if (n % sn == 0) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Long n = sc.nextLong();
        String[] nd = String.valueOf(n).split("");
        int sn = 0;
        for (int i = 0; i < nd.length; i++) {
            sn += Integer.parseInt(nd[i]);
        }
        if (n % sn == 0) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Long n = sc.nextLong();
        String[] nd = String.valueOf(n).split("");
        int sn = 0;
        for (int i = 0; i < nd.length; i++) {
            sn += Integer.parseInt(nd[i]);
        }
        if (n % sn == 0) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        Long n = sc.nextLong();
        String[] nd = String.valueOf(n).split("");
        int sn = 0;
        for (int i = 0; i < nd.length; i++) {
            sn += Integer.parseInt(nd[i]);
        }
        if (n % sn == 0) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Long n = sc.nextLong(); n sc.nextLong() sc.nextLong sc String[] nd = String.valueOf(n).split(""); nd String.valueOf(n).split("") String.valueOf(n).split String.valueOf(n) String.valueOf String n "" int sn = 0; sn 0 for (int i = 0; i < nd.length; i++) {
            sn += Integer.parseInt(nd[i]);
        } int i = 0; int i = 0; i 0 i < nd.length i nd.length nd nd.length i++ i++ i {
            sn += Integer.parseInt(nd[i]);
        } {
            sn += Integer.parseInt(nd[i]);
        } sn += Integer.parseInt(nd[i]) sn Integer.parseInt(nd[i]) Integer.parseInt Integer nd[i] nd i if (n % sn == 0) {
            System.out.println("Yes");
            return;
        } n % sn == 0 n % sn n sn 0 {
            System.out.println("Yes");
            return;
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; 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);
        Long n = sc.nextLong();
        String[] nd = String.valueOf(n).split("");
        int sn = 0;
        for (int i = 0; i < nd.length; i++) {
            sn += Integer.parseInt(nd[i]);
        }
        if (n % sn == 0) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Long n = sc.nextLong();
        String[] nd = String.valueOf(n).split("");
        int sn = 0;
        for (int i = 0; i < nd.length; i++) {
            sn += Integer.parseInt(nd[i]);
        }
        if (n % sn == 0) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Long n = sc.nextLong();
        String[] nd = String.valueOf(n).split("");
        int sn = 0;
        for (int i = 0; i < nd.length; i++) {
            sn += Integer.parseInt(nd[i]);
        }
        if (n % sn == 0) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }

}
