import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int c = a;
		int d = a;
		int[] b = new int[10];
		int i = 0;
		while (a != 0) {
			b[i] = a % 10;
			a = c / 10;
			c = a;
			i = i + 1;
		}
		int n = 0;
		for (int j = 0; j < 10; j++) {
			n = n + b[j];
		}
		String e = (d % n == 0) ? "Yes" : "No";
		System.out.println(e);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int c = a;
		int d = a;
		int[] b = new int[10];
		int i = 0;
		while (a != 0) {
			b[i] = a % 10;
			a = c / 10;
			c = a;
			i = i + 1;
		}
		int n = 0;
		for (int j = 0; j < 10; j++) {
			n = n + b[j];
		}
		String e = (d % n == 0) ? "Yes" : "No";
		System.out.println(e);
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int c = a;
		int d = a;
		int[] b = new int[10];
		int i = 0;
		while (a != 0) {
			b[i] = a % 10;
			a = c / 10;
			c = a;
			i = i + 1;
		}
		int n = 0;
		for (int j = 0; j < 10; j++) {
			n = n + b[j];
		}
		String e = (d % n == 0) ? "Yes" : "No";
		System.out.println(e);
	} main {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int c = a;
		int d = a;
		int[] b = new int[10];
		int i = 0;
		while (a != 0) {
			b[i] = a % 10;
			a = c / 10;
			c = a;
			i = i + 1;
		}
		int n = 0;
		for (int j = 0; j < 10; j++) {
			n = n + b[j];
		}
		String e = (d % n == 0) ? "Yes" : "No";
		System.out.println(e);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int c = a; c a int d = a; d a int[] b = new int[10]; b new int[10] 10 int i = 0; i 0 while (a != 0) {
			b[i] = a % 10;
			a = c / 10;
			c = a;
			i = i + 1;
		} a != 0 a 0 {
			b[i] = a % 10;
			a = c / 10;
			c = a;
			i = i + 1;
		} b[i] = a % 10 b[i] b i a % 10 a 10 a = c / 10 a c / 10 c 10 c = a c a i = i + 1 i i + 1 i 1 int n = 0; n 0 for (int j = 0; j < 10; j++) {
			n = n + b[j];
		} int j = 0; int j = 0; j 0 j < 10 j 10 j++ j++ j {
			n = n + b[j];
		} {
			n = n + b[j];
		} n = n + b[j] n n + b[j] n b[j] b j String e = (d % n == 0) ? "Yes" : "No"; e (d % n == 0) ? "Yes" : "No" (d % n == 0) d % n d n 0 "Yes" "No" System.out.println(e) System.out.println System.out System System.out e String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int c = a;
		int d = a;
		int[] b = new int[10];
		int i = 0;
		while (a != 0) {
			b[i] = a % 10;
			a = c / 10;
			c = a;
			i = i + 1;
		}
		int n = 0;
		for (int j = 0; j < 10; j++) {
			n = n + b[j];
		}
		String e = (d % n == 0) ? "Yes" : "No";
		System.out.println(e);
	}
}