import java.util.Scanner; 

public class Main {

	public static void main(String[] args) {
		String num;
		int res = 0;
		
		Scanner scanner = new Scanner(System.in);
		num = scanner.next();
		int[] array = new int[100000000];
		for(int i = 0; i < num.length(); i++) {
			array[i] = num.charAt(i)-48;
			res += array[i];
		}
		int valor = Integer.parseInt(num);
		if(valor % res == 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) {
		String num;
		int res = 0;
		
		Scanner scanner = new Scanner(System.in);
		num = scanner.next();
		int[] array = new int[100000000];
		for(int i = 0; i < num.length(); i++) {
			array[i] = num.charAt(i)-48;
			res += array[i];
		}
		int valor = Integer.parseInt(num);
		if(valor % res == 0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	}
} Main public static void main(String[] args) {
		String num;
		int res = 0;
		
		Scanner scanner = new Scanner(System.in);
		num = scanner.next();
		int[] array = new int[100000000];
		for(int i = 0; i < num.length(); i++) {
			array[i] = num.charAt(i)-48;
			res += array[i];
		}
		int valor = Integer.parseInt(num);
		if(valor % res == 0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	} main {
		String num;
		int res = 0;
		
		Scanner scanner = new Scanner(System.in);
		num = scanner.next();
		int[] array = new int[100000000];
		for(int i = 0; i < num.length(); i++) {
			array[i] = num.charAt(i)-48;
			res += array[i];
		}
		int valor = Integer.parseInt(num);
		if(valor % res == 0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	} String num; num int res = 0; res 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) num = scanner.next() num scanner.next() scanner.next scanner int[] array = new int[100000000]; array new int[100000000] 100000000 for(int i = 0; i < num.length(); i++) {
			array[i] = num.charAt(i)-48;
			res += array[i];
		} int i = 0; int i = 0; i 0 i < num.length() i num.length() num.length num i++ i++ i {
			array[i] = num.charAt(i)-48;
			res += array[i];
		} {
			array[i] = num.charAt(i)-48;
			res += array[i];
		} array[i] = num.charAt(i)-48 array[i] array i num.charAt(i)-48 num.charAt(i) num.charAt num i 48 res += array[i] res array[i] array i int valor = Integer.parseInt(num); valor Integer.parseInt(num) Integer.parseInt Integer num if(valor % res == 0) {
			System.out.println("Yes");
		}else
			System.out.println("No"); valor % res == 0 valor % res valor res 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 System.out System System.out "No" String[] args args public class Main {

	public static void main(String[] args) {
		String num;
		int res = 0;
		
		Scanner scanner = new Scanner(System.in);
		num = scanner.next();
		int[] array = new int[100000000];
		for(int i = 0; i < num.length(); i++) {
			array[i] = num.charAt(i)-48;
			res += array[i];
		}
		int valor = Integer.parseInt(num);
		if(valor % res == 0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	}
} public class Main {

	public static void main(String[] args) {
		String num;
		int res = 0;
		
		Scanner scanner = new Scanner(System.in);
		num = scanner.next();
		int[] array = new int[100000000];
		for(int i = 0; i < num.length(); i++) {
			array[i] = num.charAt(i)-48;
			res += array[i];
		}
		int valor = Integer.parseInt(num);
		if(valor % res == 0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	}
} Main
import java.util.Scanner; 

public class Main {

	public static void main(String[] args) {
		String num;
		int res = 0;
		
		Scanner scanner = new Scanner(System.in);
		num = scanner.next();
		int[] array = new int[100000000];
		for(int i = 0; i < num.length(); i++) {
			array[i] = num.charAt(i)-48;
			res += array[i];
		}
		int valor = Integer.parseInt(num);
		if(valor % res == 0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	}
}
