
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
		String s = stdin.next();
		int a = 0;
		char[] c;
		c = s.toCharArray();
		for (int i = 0; i < s.length(); i++) {
			a = a + Character.getNumericValue(c[i]);
		}
		int in = Integer.parseInt(s);
		if (in % 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
		String s = stdin.next();
		int a = 0;
		char[] c;
		c = s.toCharArray();
		for (int i = 0; i < s.length(); i++) {
			a = a + Character.getNumericValue(c[i]);
		}
		int in = Integer.parseInt(s);
		if (in % a == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
		String s = stdin.next();
		int a = 0;
		char[] c;
		c = s.toCharArray();
		for (int i = 0; i < s.length(); i++) {
			a = a + Character.getNumericValue(c[i]);
		}
		int in = Integer.parseInt(s);
		if (in % a == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
		String s = stdin.next();
		int a = 0;
		char[] c;
		c = s.toCharArray();
		for (int i = 0; i < s.length(); i++) {
			a = a + Character.getNumericValue(c[i]);
		}
		int in = Integer.parseInt(s);
		if (in % a == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) String s = stdin.next(); s stdin.next() stdin.next stdin int a = 0; a 0 char[] c; c c = s.toCharArray() c s.toCharArray() s.toCharArray s for (int i = 0; i < s.length(); i++) {
			a = a + Character.getNumericValue(c[i]);
		} int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
			a = a + Character.getNumericValue(c[i]);
		} {
			a = a + Character.getNumericValue(c[i]);
		} a = a + Character.getNumericValue(c[i]) a a + Character.getNumericValue(c[i]) a Character.getNumericValue(c[i]) Character.getNumericValue Character c[i] c i int in = Integer.parseInt(s); in Integer.parseInt(s) Integer.parseInt Integer s if (in % a == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} in % a == 0 in % a in 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
		String s = stdin.next();
		int a = 0;
		char[] c;
		c = s.toCharArray();
		for (int i = 0; i < s.length(); i++) {
			a = a + Character.getNumericValue(c[i]);
		}
		int in = Integer.parseInt(s);
		if (in % a == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
		String s = stdin.next();
		int a = 0;
		char[] c;
		c = s.toCharArray();
		for (int i = 0; i < s.length(); i++) {
			a = a + Character.getNumericValue(c[i]);
		}
		int in = Integer.parseInt(s);
		if (in % 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
		String s = stdin.next();
		int a = 0;
		char[] c;
		c = s.toCharArray();
		for (int i = 0; i < s.length(); i++) {
			a = a + Character.getNumericValue(c[i]);
		}
		int in = Integer.parseInt(s);
		if (in % a == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

}
