import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		partB101();
	}


	public static void partB101() {
		Scanner scB = new Scanner(System.in);
		String N = scB.nextLine();
		int M = Integer.parseInt(N);
		int S = 0;

		for(int i = 0 ; i < N.length() ; i++) {
			S += Character.getNumericValue(N.charAt(i));
		}
    

		if(M % S == 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) {
		partB101();
	}


	public static void partB101() {
		Scanner scB = new Scanner(System.in);
		String N = scB.nextLine();
		int M = Integer.parseInt(N);
		int S = 0;

		for(int i = 0 ; i < N.length() ; i++) {
			S += Character.getNumericValue(N.charAt(i));
		}
    

		if(M % S == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		partB101();
	} main {
		partB101();
	} partB101() partB101 String[] args args public static void partB101() {
		Scanner scB = new Scanner(System.in);
		String N = scB.nextLine();
		int M = Integer.parseInt(N);
		int S = 0;

		for(int i = 0 ; i < N.length() ; i++) {
			S += Character.getNumericValue(N.charAt(i));
		}
    

		if(M % S == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} partB101 {
		Scanner scB = new Scanner(System.in);
		String N = scB.nextLine();
		int M = Integer.parseInt(N);
		int S = 0;

		for(int i = 0 ; i < N.length() ; i++) {
			S += Character.getNumericValue(N.charAt(i));
		}
    

		if(M % S == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} Scanner scB = new Scanner(System.in); scB new Scanner(System.in) String N = scB.nextLine(); N scB.nextLine() scB.nextLine scB int M = Integer.parseInt(N); M Integer.parseInt(N) Integer.parseInt Integer N int S = 0; S 0 for(int i = 0 ; i < N.length() ; i++) {
			S += Character.getNumericValue(N.charAt(i));
		} int i = 0 ; int i = 0 ; i 0 i < N.length() i N.length() N.length N i++ i++ i {
			S += Character.getNumericValue(N.charAt(i));
		} {
			S += Character.getNumericValue(N.charAt(i));
		} S += Character.getNumericValue(N.charAt(i)) S Character.getNumericValue(N.charAt(i)) Character.getNumericValue Character N.charAt(i) N.charAt N i if(M % S == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} M % S == 0 M % S M S 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" public class Main {

	public static void main(String[] args) {
		partB101();
	}


	public static void partB101() {
		Scanner scB = new Scanner(System.in);
		String N = scB.nextLine();
		int M = Integer.parseInt(N);
		int S = 0;

		for(int i = 0 ; i < N.length() ; i++) {
			S += Character.getNumericValue(N.charAt(i));
		}
    

		if(M % S == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String[] args) {
		partB101();
	}


	public static void partB101() {
		Scanner scB = new Scanner(System.in);
		String N = scB.nextLine();
		int M = Integer.parseInt(N);
		int S = 0;

		for(int i = 0 ; i < N.length() ; i++) {
			S += Character.getNumericValue(N.charAt(i));
		}
    

		if(M % S == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		partB101();
	}


	public static void partB101() {
		Scanner scB = new Scanner(System.in);
		String N = scB.nextLine();
		int M = Integer.parseInt(N);
		int S = 0;

		for(int i = 0 ; i < N.length() ; i++) {
			S += Character.getNumericValue(N.charAt(i));
		}
    

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