import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		int divideNum = 0;
		for(int i = 0; i < str.length(); i++){
			divideNum = divideNum + str.charAt(i) - '0';
		}
		int num = Integer.parseInt(str);
		if(num%divideNum == 0){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		int divideNum = 0;
		for(int i = 0; i < str.length(); i++){
			divideNum = divideNum + str.charAt(i) - '0';
		}
		int num = Integer.parseInt(str);
		if(num%divideNum == 0){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		int divideNum = 0;
		for(int i = 0; i < str.length(); i++){
			divideNum = divideNum + str.charAt(i) - '0';
		}
		int num = Integer.parseInt(str);
		if(num%divideNum == 0){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		int divideNum = 0;
		for(int i = 0; i < str.length(); i++){
			divideNum = divideNum + str.charAt(i) - '0';
		}
		int num = Integer.parseInt(str);
		if(num%divideNum == 0){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc int divideNum = 0; divideNum 0 for(int i = 0; i < str.length(); i++){
			divideNum = divideNum + str.charAt(i) - '0';
		} int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
			divideNum = divideNum + str.charAt(i) - '0';
		} {
			divideNum = divideNum + str.charAt(i) - '0';
		} divideNum = divideNum + str.charAt(i) - '0' divideNum divideNum + str.charAt(i) - '0' divideNum + str.charAt(i) divideNum str.charAt(i) str.charAt str i '0' int num = Integer.parseInt(str); num Integer.parseInt(str) Integer.parseInt Integer str if(num%divideNum == 0){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} num%divideNum == 0 num%divideNum num divideNum 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
import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str = sc.nextLine();
		int divideNum = 0;
		for(int i = 0; i < str.length(); i++){
			divideNum = divideNum + str.charAt(i) - '0';
		}
		int num = Integer.parseInt(str);
		if(num%divideNum == 0){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}