import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String NS = scanner.next();
		scanner.close();

		int NI = Integer.parseInt(NS);
		int A = 0;

		for (int n = 0; n < NS.length(); n++) {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		}
		if (NI % A == 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 scanner = new Scanner(System.in);
		String NS = scanner.next();
		scanner.close();

		int NI = Integer.parseInt(NS);
		int A = 0;

		for (int n = 0; n < NS.length(); n++) {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		}
		if (NI % A == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String NS = scanner.next();
		scanner.close();

		int NI = Integer.parseInt(NS);
		int A = 0;

		for (int n = 0; n < NS.length(); n++) {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		}
		if (NI % A == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} main {
		Scanner scanner = new Scanner(System.in);
		String NS = scanner.next();
		scanner.close();

		int NI = Integer.parseInt(NS);
		int A = 0;

		for (int n = 0; n < NS.length(); n++) {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		}
		if (NI % A == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String NS = scanner.next(); NS scanner.next() scanner.next scanner scanner.close() scanner.close scanner int NI = Integer.parseInt(NS); NI Integer.parseInt(NS) Integer.parseInt Integer NS int A = 0; A 0 for (int n = 0; n < NS.length(); n++) {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		} int n = 0; int n = 0; n 0 n < NS.length() n NS.length() NS.length NS n++ n++ n {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		} {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		} String ns = NS.substring(n, n + 1); ns NS.substring(n, n + 1) NS.substring NS n n + 1 n 1 int a = Integer.parseInt(ns); a Integer.parseInt(ns) Integer.parseInt Integer ns A = A + a A A + a A a if (NI % A == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} NI % A == 0 NI % A NI A 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 scanner = new Scanner(System.in);
		String NS = scanner.next();
		scanner.close();

		int NI = Integer.parseInt(NS);
		int A = 0;

		for (int n = 0; n < NS.length(); n++) {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		}
		if (NI % A == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String NS = scanner.next();
		scanner.close();

		int NI = Integer.parseInt(NS);
		int A = 0;

		for (int n = 0; n < NS.length(); n++) {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		}
		if (NI % A == 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 scanner = new Scanner(System.in);
		String NS = scanner.next();
		scanner.close();

		int NI = Integer.parseInt(NS);
		int A = 0;

		for (int n = 0; n < NS.length(); n++) {
			String ns = NS.substring(n, n + 1);
			int a = Integer.parseInt(ns);
			A = A + a;
		}
		if (NI % A == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}
}