
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		int n2 = 0;
		final String nStr[] = String.valueOf(n).split("");

		for (final String item : nStr) {
			n2 = n2 + Integer.parseInt(item);
		}

		if (n % n2 == 0) {
			System.out.println("Yes");
		} else {
			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);

		final int n = sc.nextInt();

		int n2 = 0;
		final String nStr[] = String.valueOf(n).split("");

		for (final String item : nStr) {
			n2 = n2 + Integer.parseInt(item);
		}

		if (n % n2 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		int n2 = 0;
		final String nStr[] = String.valueOf(n).split("");

		for (final String item : nStr) {
			n2 = n2 + Integer.parseInt(item);
		}

		if (n % n2 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} main {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		int n2 = 0;
		final String nStr[] = String.valueOf(n).split("");

		for (final String item : nStr) {
			n2 = n2 + Integer.parseInt(item);
		}

		if (n % n2 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int n2 = 0; n2 0 final String nStr[] = String.valueOf(n).split(""); nStr String.valueOf(n).split("") String.valueOf(n).split String.valueOf(n) String.valueOf String n "" for (final String item : nStr) {
			n2 = n2 + Integer.parseInt(item);
		} final String item nStr {
			n2 = n2 + Integer.parseInt(item);
		} {
			n2 = n2 + Integer.parseInt(item);
		} n2 = n2 + Integer.parseInt(item) n2 n2 + Integer.parseInt(item) n2 Integer.parseInt(item) Integer.parseInt Integer item if (n % n2 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} n % n2 == 0 n % n2 n n2 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 public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		int n2 = 0;
		final String nStr[] = String.valueOf(n).split("");

		for (final String item : nStr) {
			n2 = n2 + Integer.parseInt(item);
		}

		if (n % n2 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

} public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		int n2 = 0;
		final String nStr[] = String.valueOf(n).split("");

		for (final String item : nStr) {
			n2 = n2 + Integer.parseInt(item);
		}

		if (n % n2 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		int n2 = 0;
		final String nStr[] = String.valueOf(n).split("");

		for (final String item : nStr) {
			n2 = n2 + Integer.parseInt(item);
		}

		if (n % n2 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

}
