import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//入力Nを取得
		String inputStrN=sc.nextLine();
		int inputIntN = Integer.parseInt(inputStrN);
		char[] aStrN=new char[inputStrN.length()];
		int sumN = 0;
		//S(N)を計算
		for(int j = 0;j < inputStrN.length();j++){
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		}
		//判定
		if(inputIntN % sumN == 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);
		//入力Nを取得
		String inputStrN=sc.nextLine();
		int inputIntN = Integer.parseInt(inputStrN);
		char[] aStrN=new char[inputStrN.length()];
		int sumN = 0;
		//S(N)を計算
		for(int j = 0;j < inputStrN.length();j++){
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		}
		//判定
		if(inputIntN % sumN == 0){
			// 出力
			System.out.println("Yes");
		}else{
			// 出力
			System.out.println("No");
		}
		

	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//入力Nを取得
		String inputStrN=sc.nextLine();
		int inputIntN = Integer.parseInt(inputStrN);
		char[] aStrN=new char[inputStrN.length()];
		int sumN = 0;
		//S(N)を計算
		for(int j = 0;j < inputStrN.length();j++){
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		}
		//判定
		if(inputIntN % sumN == 0){
			// 出力
			System.out.println("Yes");
		}else{
			// 出力
			System.out.println("No");
		}
		

	} main {
		Scanner sc = new Scanner(System.in);
		//入力Nを取得
		String inputStrN=sc.nextLine();
		int inputIntN = Integer.parseInt(inputStrN);
		char[] aStrN=new char[inputStrN.length()];
		int sumN = 0;
		//S(N)を計算
		for(int j = 0;j < inputStrN.length();j++){
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		}
		//判定
		if(inputIntN % sumN == 0){
			// 出力
			System.out.println("Yes");
		}else{
			// 出力
			System.out.println("No");
		}
		

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String inputStrN=sc.nextLine(); inputStrN sc.nextLine() sc.nextLine sc int inputIntN = Integer.parseInt(inputStrN); inputIntN Integer.parseInt(inputStrN) Integer.parseInt Integer inputStrN char[] aStrN=new char[inputStrN.length()]; aStrN new char[inputStrN.length()] inputStrN.length() inputStrN.length inputStrN int sumN = 0; sumN 0 for(int j = 0;j < inputStrN.length();j++){
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		} int j = 0; int j = 0; j 0 j < inputStrN.length() j inputStrN.length() inputStrN.length inputStrN j++ j++ j {
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		} {
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		} aStrN[j]=inputStrN.charAt(j) aStrN[j] aStrN j inputStrN.charAt(j) inputStrN.charAt inputStrN j sumN = sumN + Character.getNumericValue(aStrN[j]) sumN sumN + Character.getNumericValue(aStrN[j]) sumN Character.getNumericValue(aStrN[j]) Character.getNumericValue Character aStrN[j] aStrN j if(inputIntN % sumN == 0){
			// 出力
			System.out.println("Yes");
		}else{
			// 出力
			System.out.println("No");
		} inputIntN % sumN == 0 inputIntN % sumN inputIntN sumN 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);
		//入力Nを取得
		String inputStrN=sc.nextLine();
		int inputIntN = Integer.parseInt(inputStrN);
		char[] aStrN=new char[inputStrN.length()];
		int sumN = 0;
		//S(N)を計算
		for(int j = 0;j < inputStrN.length();j++){
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		}
		//判定
		if(inputIntN % sumN == 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);
		//入力Nを取得
		String inputStrN=sc.nextLine();
		int inputIntN = Integer.parseInt(inputStrN);
		char[] aStrN=new char[inputStrN.length()];
		int sumN = 0;
		//S(N)を計算
		for(int j = 0;j < inputStrN.length();j++){
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		}
		//判定
		if(inputIntN % sumN == 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);
		//入力Nを取得
		String inputStrN=sc.nextLine();
		int inputIntN = Integer.parseInt(inputStrN);
		char[] aStrN=new char[inputStrN.length()];
		int sumN = 0;
		//S(N)を計算
		for(int j = 0;j < inputStrN.length();j++){
			aStrN[j]=inputStrN.charAt(j);
			sumN = sumN + Character.getNumericValue(aStrN[j]);
		}
		//判定
		if(inputIntN % sumN == 0){
			// 出力
			System.out.println("Yes");
		}else{
			// 出力
			System.out.println("No");
		}
		

	}
}