import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		
		String N = sc.nextLine();
		String[] Narray = N.split("");
		int ns = 0;
		for (String n : Narray) {
			int n_ = Integer.parseInt(n);
			ns += n_;
		}

		int N_ = Integer.parseInt(N);
		
		if(N_ % ns == 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		
		String N = sc.nextLine();
		String[] Narray = N.split("");
		int ns = 0;
		for (String n : Narray) {
			int n_ = Integer.parseInt(n);
			ns += n_;
		}

		int N_ = Integer.parseInt(N);
		
		if(N_ % ns == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		
		String N = sc.nextLine();
		String[] Narray = N.split("");
		int ns = 0;
		for (String n : Narray) {
			int n_ = Integer.parseInt(n);
			ns += n_;
		}

		int N_ = Integer.parseInt(N);
		
		if(N_ % ns == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		
		String N = sc.nextLine();
		String[] Narray = N.split("");
		int ns = 0;
		for (String n : Narray) {
			int n_ = Integer.parseInt(n);
			ns += n_;
		}

		int N_ = Integer.parseInt(N);
		
		if(N_ % ns == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.nextLine(); N sc.nextLine() sc.nextLine sc String[] Narray = N.split(""); Narray N.split("") N.split N "" int ns = 0; ns 0 for (String n : Narray) {
			int n_ = Integer.parseInt(n);
			ns += n_;
		} String n Narray {
			int n_ = Integer.parseInt(n);
			ns += n_;
		} {
			int n_ = Integer.parseInt(n);
			ns += n_;
		} int n_ = Integer.parseInt(n); n_ Integer.parseInt(n) Integer.parseInt Integer n ns += n_ ns n_ int N_ = Integer.parseInt(N); N_ Integer.parseInt(N) Integer.parseInt Integer N if(N_ % ns == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} N_ % ns == 0 N_ % ns N_ ns 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		
		String N = sc.nextLine();
		String[] Narray = N.split("");
		int ns = 0;
		for (String n : Narray) {
			int n_ = Integer.parseInt(n);
			ns += n_;
		}

		int N_ = Integer.parseInt(N);
		
		if(N_ % ns == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		
		String N = sc.nextLine();
		String[] Narray = N.split("");
		int ns = 0;
		for (String n : Narray) {
			int n_ = Integer.parseInt(n);
			ns += n_;
		}

		int N_ = Integer.parseInt(N);
		
		if(N_ % ns == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		
		String N = sc.nextLine();
		String[] Narray = N.split("");
		int ns = 0;
		for (String n : Narray) {
			int n_ = Integer.parseInt(n);
			ns += n_;
		}

		int N_ = Integer.parseInt(N);
		
		if(N_ % ns == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}

}
