import java.util.Scanner;

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


    	int sum = 0;
    	for (int i = 0; i < N_array.length; i++) {
			sum += Character.getNumericValue(N_array[i]);
		}

    	if (Integer.parseInt(N) % sum == 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) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		char[] N_array = N.toCharArray();


    	int sum = 0;
    	for (int i = 0; i < N_array.length; i++) {
			sum += Character.getNumericValue(N_array[i]);
		}

    	if (Integer.parseInt(N) % sum == 0){
    		System.out.println("Yes");
    	}else {
    		System.out.println("No");
    	}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		char[] N_array = N.toCharArray();


    	int sum = 0;
    	for (int i = 0; i < N_array.length; i++) {
			sum += Character.getNumericValue(N_array[i]);
		}

    	if (Integer.parseInt(N) % sum == 0){
    		System.out.println("Yes");
    	}else {
    		System.out.println("No");
    	}
	} main {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		char[] N_array = N.toCharArray();


    	int sum = 0;
    	for (int i = 0; i < N_array.length; i++) {
			sum += Character.getNumericValue(N_array[i]);
		}

    	if (Integer.parseInt(N) % sum == 0){
    		System.out.println("Yes");
    	}else {
    		System.out.println("No");
    	}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc char[] N_array = N.toCharArray(); N_array N.toCharArray() N.toCharArray N int sum = 0; sum 0 for (int i = 0; i < N_array.length; i++) {
			sum += Character.getNumericValue(N_array[i]);
		} int i = 0; int i = 0; i 0 i < N_array.length i N_array.length N_array N_array.length i++ i++ i {
			sum += Character.getNumericValue(N_array[i]);
		} {
			sum += Character.getNumericValue(N_array[i]);
		} sum += Character.getNumericValue(N_array[i]) sum Character.getNumericValue(N_array[i]) Character.getNumericValue Character N_array[i] N_array i if (Integer.parseInt(N) % sum == 0){
    		System.out.println("Yes");
    	}else {
    		System.out.println("No");
    	} Integer.parseInt(N) % sum == 0 Integer.parseInt(N) % sum Integer.parseInt(N) Integer.parseInt Integer N sum 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 sc = new Scanner(System.in);
		String N = sc.next();
		char[] N_array = N.toCharArray();


    	int sum = 0;
    	for (int i = 0; i < N_array.length; i++) {
			sum += Character.getNumericValue(N_array[i]);
		}

    	if (Integer.parseInt(N) % sum == 0){
    		System.out.println("Yes");
    	}else {
    		System.out.println("No");
    	}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		char[] N_array = N.toCharArray();


    	int sum = 0;
    	for (int i = 0; i < N_array.length; i++) {
			sum += Character.getNumericValue(N_array[i]);
		}

    	if (Integer.parseInt(N) % sum == 0){
    		System.out.println("Yes");
    	}else {
    		System.out.println("No");
    	}
	}
} Main
import java.util.Scanner;

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


    	int sum = 0;
    	for (int i = 0; i < N_array.length; i++) {
			sum += Character.getNumericValue(N_array[i]);
		}

    	if (Integer.parseInt(N) % sum == 0){
    		System.out.println("Yes");
    	}else {
    		System.out.println("No");
    	}
	}
}