import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int n = a, b = 0;
		while(0 < a) {
			b += a%10; a /= 10;
		}
		if(n % b == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int n = a, b = 0;
		while(0 < a) {
			b += a%10; a /= 10;
		}
		if(n % b == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int n = a, b = 0;
		while(0 < a) {
			b += a%10; a /= 10;
		}
		if(n % b == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int n = a, b = 0;
		while(0 < a) {
			b += a%10; a /= 10;
		}
		if(n % b == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int n = a n a b = 0; b 0 while(0 < a) {
			b += a%10; a /= 10;
		} 0 < a 0 a {
			b += a%10; a /= 10;
		} b += a%10 b a%10 a 10 a /= 10 a 10 if(n % b == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} n % b == 0 n % b n b 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 a = in.nextInt();
		int n = a, b = 0;
		while(0 < a) {
			b += a%10; a /= 10;
		}
		if(n % b == 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 a = in.nextInt();
		int n = a, b = 0;
		while(0 < a) {
			b += a%10; a /= 10;
		}
		if(n % b == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.io.*;
import java.util.*;

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