import java.util.*;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = a;
		int sum = 0;
		
		while(a > 0) {
			sum += a % 10;
			a /= 10;
		}
		
		if(b % sum == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {

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

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

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = a;
		int sum = 0;
		
		while(a > 0) {
			sum += a % 10;
			a /= 10;
		}
		
		if(b % sum == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = a; b a int sum = 0; sum 0 while(a > 0) {
			sum += a % 10;
			a /= 10;
		} a > 0 a 0 {
			sum += a % 10;
			a /= 10;
		} sum += a % 10 sum a % 10 a 10 a /= 10 a 10 if(b % sum == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} b % sum == 0 b % sum b 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 scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = a;
		int sum = 0;
		
		while(a > 0) {
			sum += a % 10;
			a /= 10;
		}
		
		if(b % sum == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = a;
		int sum = 0;
		
		while(a > 0) {
			sum += a % 10;
			a /= 10;
		}
		
		if(b % sum == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = a;
		int sum = 0;
		
		while(a > 0) {
			sum += a % 10;
			a /= 10;
		}
		
		if(b % sum == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}