import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int numOrigin = num;
		int sumEachDigit = 0;
		while(num>0) {
			sumEachDigit += num % 10;
			num /= 10;
		}
		if(numOrigin%sumEachDigit==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 in = new Scanner(System.in);
		int num = in.nextInt();
		int numOrigin = num;
		int sumEachDigit = 0;
		while(num>0) {
			sumEachDigit += num % 10;
			num /= 10;
		}
		if(numOrigin%sumEachDigit==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int numOrigin = num;
		int sumEachDigit = 0;
		while(num>0) {
			sumEachDigit += num % 10;
			num /= 10;
		}
		if(numOrigin%sumEachDigit==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	} main {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int numOrigin = num;
		int sumEachDigit = 0;
		while(num>0) {
			sumEachDigit += num % 10;
			num /= 10;
		}
		if(numOrigin%sumEachDigit==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int num = in.nextInt(); num in.nextInt() in.nextInt in int numOrigin = num; numOrigin num int sumEachDigit = 0; sumEachDigit 0 while(num>0) {
			sumEachDigit += num % 10;
			num /= 10;
		} num>0 num 0 {
			sumEachDigit += num % 10;
			num /= 10;
		} sumEachDigit += num % 10 sumEachDigit num % 10 num 10 num /= 10 num 10 if(numOrigin%sumEachDigit==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} numOrigin%sumEachDigit==0 numOrigin%sumEachDigit numOrigin sumEachDigit 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 in = new Scanner(System.in);
		int num = in.nextInt();
		int numOrigin = num;
		int sumEachDigit = 0;
		while(num>0) {
			sumEachDigit += num % 10;
			num /= 10;
		}
		if(numOrigin%sumEachDigit==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int numOrigin = num;
		int sumEachDigit = 0;
		while(num>0) {
			sumEachDigit += num % 10;
			num /= 10;
		}
		if(numOrigin%sumEachDigit==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 in = new Scanner(System.in);
		int num = in.nextInt();
		int numOrigin = num;
		int sumEachDigit = 0;
		while(num>0) {
			sumEachDigit += num % 10;
			num /= 10;
		}
		if(numOrigin%sumEachDigit==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	}

}