import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b[] = new int[100];
		int i = 0;
		int sum = 0;
		int c = a;

		while (c != 0) {
			b[i++] = c % 10;
			c /= 10;
		}

		for (int j = 0; j < i; j++) {
			sum += b[j];
		}

		if (a % sum == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b[] = new int[100];
		int i = 0;
		int sum = 0;
		int c = a;

		while (c != 0) {
			b[i++] = c % 10;
			c /= 10;
		}

		for (int j = 0; j < i; j++) {
			sum += b[j];
		}

		if (a % sum == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b[] = new int[100];
		int i = 0;
		int sum = 0;
		int c = a;

		while (c != 0) {
			b[i++] = c % 10;
			c /= 10;
		}

		for (int j = 0; j < i; j++) {
			sum += b[j];
		}

		if (a % sum == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	} main {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b[] = new int[100];
		int i = 0;
		int sum = 0;
		int c = a;

		while (c != 0) {
			b[i++] = c % 10;
			c /= 10;
		}

		for (int j = 0; j < i; j++) {
			sum += b[j];
		}

		if (a % sum == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b[] = new int[100]; b new int[100] 100 int i = 0; i 0 int sum = 0; sum 0 int c = a; c a while (c != 0) {
			b[i++] = c % 10;
			c /= 10;
		} c != 0 c 0 {
			b[i++] = c % 10;
			c /= 10;
		} b[i++] = c % 10 b[i++] b i++ i c % 10 c 10 c /= 10 c 10 for (int j = 0; j < i; j++) {
			sum += b[j];
		} int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
			sum += b[j];
		} {
			sum += b[j];
		} sum += b[j] sum b[j] b j if (a % sum == 0)
			System.out.println("Yes");
		else
			System.out.println("No"); a % sum == 0 a % sum a sum 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String args[] args
import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b[] = new int[100];
		int i = 0;
		int sum = 0;
		int c = a;

		while (c != 0) {
			b[i++] = c % 10;
			c /= 10;
		}

		for (int j = 0; j < i; j++) {
			sum += b[j];
		}

		if (a % sum == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}