///Good words cool more than cold water.
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

		int b = a;
		int sum = 0;
		while(b > 0) {
			sum += b%10;
			b -= b%10;
			b /= 10;
		}
		if(a%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);
		int a = sc.nextInt();

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

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

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

		int b = a;
		int sum = 0;
		while(b > 0) {
			sum += b%10;
			b -= b%10;
			b /= 10;
		}
		if(a%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);
		int a = sc.nextInt();

		int b = a;
		int sum = 0;
		while(b > 0) {
			sum += b%10;
			b -= b%10;
			b /= 10;
		}
		if(a%sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main
///Good words cool more than cold water.
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

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