import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n % s(n) == 0)System.out.println("Yes");
		else System.out.println("No");
	}
	
	static int s(int n) {
		int num = n;
		int sum = 0;
		while(num != 0) {
			sum += num % 10;
			num /= 10;
		}
		return sum;
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n % s(n) == 0)System.out.println("Yes");
		else System.out.println("No");
	}
	
	static int s(int n) {
		int num = n;
		int sum = 0;
		while(num != 0) {
			sum += num % 10;
			num /= 10;
		}
		return sum;
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n % s(n) == 0)System.out.println("Yes");
		else System.out.println("No");
	}
	
	static int s(int n) {
		int num = n;
		int sum = 0;
		while(num != 0) {
			sum += num % 10;
			num /= 10;
		}
		return sum;
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n % s(n) == 0)System.out.println("Yes");
		else System.out.println("No");
	}
	
	static int s(int n) {
		int num = n;
		int sum = 0;
		while(num != 0) {
			sum += num % 10;
			num /= 10;
		}
		return sum;
	}
}