import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int key = N;
		int []hairetu = new int[10];
		for(int i=0;i<10;i++){
			hairetu[i] = N%10;
			N = N /10;
		}
		int sum =0;
		for(int i=0;i<10;i++){
			sum = sum + hairetu[i];
		}
		if(key % 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 sc = new Scanner(System.in);
		int N = sc.nextInt();
		int key = N;
		int []hairetu = new int[10];
		for(int i=0;i<10;i++){
			hairetu[i] = N%10;
			N = N /10;
		}
		int sum =0;
		for(int i=0;i<10;i++){
			sum = sum + hairetu[i];
		}
		if(key % 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 N = sc.nextInt();
		int key = N;
		int []hairetu = new int[10];
		for(int i=0;i<10;i++){
			hairetu[i] = N%10;
			N = N /10;
		}
		int sum =0;
		for(int i=0;i<10;i++){
			sum = sum + hairetu[i];
		}
		if(key % sum==0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int key = N;
		int []hairetu = new int[10];
		for(int i=0;i<10;i++){
			hairetu[i] = N%10;
			N = N /10;
		}
		int sum =0;
		for(int i=0;i<10;i++){
			sum = sum + hairetu[i];
		}
		if(key % sum==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 int key = N; key N int []hairetu = new int[10]; hairetu new int[10] 10 for(int i=0;i<10;i++){
			hairetu[i] = N%10;
			N = N /10;
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			hairetu[i] = N%10;
			N = N /10;
		} {
			hairetu[i] = N%10;
			N = N /10;
		} hairetu[i] = N%10 hairetu[i] hairetu i N%10 N 10 N = N /10 N N /10 N 10 int sum =0; sum 0 for(int i=0;i<10;i++){
			sum = sum + hairetu[i];
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			sum = sum + hairetu[i];
		} {
			sum = sum + hairetu[i];
		} sum = sum + hairetu[i] sum sum + hairetu[i] sum hairetu[i] hairetu i if(key % sum==0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		} key % sum==0 key % sum key 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 N = sc.nextInt();
		int key = N;
		int []hairetu = new int[10];
		for(int i=0;i<10;i++){
			hairetu[i] = N%10;
			N = N /10;
		}
		int sum =0;
		for(int i=0;i<10;i++){
			sum = sum + hairetu[i];
		}
		if(key % 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 N = sc.nextInt();
		int key = N;
		int []hairetu = new int[10];
		for(int i=0;i<10;i++){
			hairetu[i] = N%10;
			N = N /10;
		}
		int sum =0;
		for(int i=0;i<10;i++){
			sum = sum + hairetu[i];
		}
		if(key % 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 sc = new Scanner(System.in);
		int N = sc.nextInt();
		int key = N;
		int []hairetu = new int[10];
		for(int i=0;i<10;i++){
			hairetu[i] = N%10;
			N = N /10;
		}
		int sum =0;
		for(int i=0;i<10;i++){
			sum = sum + hairetu[i];
		}
		if(key % sum==0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
}
