import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String N = scanner.nextLine();
		int Num = Integer.parseInt(N);
		int length = String.valueOf(N).length();

		int num = 0;

//		StringBuilder sb = new StringBuilder(N);

		ArrayList<Integer> numbers = new ArrayList<Integer>();

		for(int i = 0; i < length;) {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		}

		for (int k : numbers) {
			num += k;
		}

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


	}

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String N = scanner.nextLine();
		int Num = Integer.parseInt(N);
		int length = String.valueOf(N).length();

		int num = 0;

//		StringBuilder sb = new StringBuilder(N);

		ArrayList<Integer> numbers = new ArrayList<Integer>();

		for(int i = 0; i < length;) {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		}

		for (int k : numbers) {
			num += k;
		}

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


	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String N = scanner.nextLine();
		int Num = Integer.parseInt(N);
		int length = String.valueOf(N).length();

		int num = 0;

//		StringBuilder sb = new StringBuilder(N);

		ArrayList<Integer> numbers = new ArrayList<Integer>();

		for(int i = 0; i < length;) {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		}

		for (int k : numbers) {
			num += k;
		}

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


	} main {
		Scanner scanner = new Scanner(System.in);
		String N = scanner.nextLine();
		int Num = Integer.parseInt(N);
		int length = String.valueOf(N).length();

		int num = 0;

//		StringBuilder sb = new StringBuilder(N);

		ArrayList<Integer> numbers = new ArrayList<Integer>();

		for(int i = 0; i < length;) {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		}

		for (int k : numbers) {
			num += k;
		}

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


	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String N = scanner.nextLine(); N scanner.nextLine() scanner.nextLine scanner int Num = Integer.parseInt(N); Num Integer.parseInt(N) Integer.parseInt Integer N int length = String.valueOf(N).length(); length String.valueOf(N).length() String.valueOf(N).length String.valueOf(N) String.valueOf String N int num = 0; num 0 ArrayList<Integer> numbers = new ArrayList<Integer>(); numbers new ArrayList<Integer>() for(int i = 0; i < length;) {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		} int i = 0; int i = 0; i 0 i < length i length {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		} {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		} String S = N.substring(i, ++i); S N.substring(i, ++i) N.substring N i ++i i int j = Integer.parseInt(S); j Integer.parseInt(S) Integer.parseInt Integer S numbers.add(j) numbers.add numbers j for (int k : numbers) {
			num += k;
		} int k numbers {
			num += k;
		} {
			num += k;
		} num += k num k if (Num % num == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} Num % num == 0 Num % num Num num 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 N = scanner.nextLine();
		int Num = Integer.parseInt(N);
		int length = String.valueOf(N).length();

		int num = 0;

//		StringBuilder sb = new StringBuilder(N);

		ArrayList<Integer> numbers = new ArrayList<Integer>();

		for(int i = 0; i < length;) {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		}

		for (int k : numbers) {
			num += k;
		}

		if (Num % num == 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 N = scanner.nextLine();
		int Num = Integer.parseInt(N);
		int length = String.valueOf(N).length();

		int num = 0;

//		StringBuilder sb = new StringBuilder(N);

		ArrayList<Integer> numbers = new ArrayList<Integer>();

		for(int i = 0; i < length;) {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		}

		for (int k : numbers) {
			num += k;
		}

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


	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String N = scanner.nextLine();
		int Num = Integer.parseInt(N);
		int length = String.valueOf(N).length();

		int num = 0;

//		StringBuilder sb = new StringBuilder(N);

		ArrayList<Integer> numbers = new ArrayList<Integer>();

		for(int i = 0; i < length;) {
			String S = N.substring(i, ++i);
			int j = Integer.parseInt(S);
			numbers.add(j);
		}

		for (int k : numbers) {
			num += k;
		}

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


	}

}