import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String cd = vd.readLine();
		String[] fd = cd.split("");
		int n = Integer.parseInt(cd);
		int k =0;
		for(int i=0;i<fd.length;++i) {
			k=k+Integer.parseInt(fd[i]);
		}
		if(n%k==0) System.out.println("Yes");
		else System.out.println("No");
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String cd = vd.readLine();
		String[] fd = cd.split("");
		int n = Integer.parseInt(cd);
		int k =0;
		for(int i=0;i<fd.length;++i) {
			k=k+Integer.parseInt(fd[i]);
		}
		if(n%k==0) System.out.println("Yes");
		else System.out.println("No");
	}

} Main public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String cd = vd.readLine();
		String[] fd = cd.split("");
		int n = Integer.parseInt(cd);
		int k =0;
		for(int i=0;i<fd.length;++i) {
			k=k+Integer.parseInt(fd[i]);
		}
		if(n%k==0) System.out.println("Yes");
		else System.out.println("No");
	} main {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String cd = vd.readLine();
		String[] fd = cd.split("");
		int n = Integer.parseInt(cd);
		int k =0;
		for(int i=0;i<fd.length;++i) {
			k=k+Integer.parseInt(fd[i]);
		}
		if(n%k==0) System.out.println("Yes");
		else System.out.println("No");
	} BufferedReader vd = new BufferedReader(new InputStreamReader(System.in)); vd new BufferedReader(new InputStreamReader(System.in)) String cd = vd.readLine(); cd vd.readLine() vd.readLine vd String[] fd = cd.split(""); fd cd.split("") cd.split cd "" int n = Integer.parseInt(cd); n Integer.parseInt(cd) Integer.parseInt Integer cd int k =0; k 0 for(int i=0;i<fd.length;++i) {
			k=k+Integer.parseInt(fd[i]);
		} int i=0; int i=0; i 0 i<fd.length i fd.length fd fd.length ++i ++i i {
			k=k+Integer.parseInt(fd[i]);
		} {
			k=k+Integer.parseInt(fd[i]);
		} k=k+Integer.parseInt(fd[i]) k k+Integer.parseInt(fd[i]) k Integer.parseInt(fd[i]) Integer.parseInt Integer fd[i] fd i if(n%k==0) System.out.println("Yes");
		else System.out.println("No"); n%k==0 n%k n k 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" 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) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String cd = vd.readLine();
		String[] fd = cd.split("");
		int n = Integer.parseInt(cd);
		int k =0;
		for(int i=0;i<fd.length;++i) {
			k=k+Integer.parseInt(fd[i]);
		}
		if(n%k==0) System.out.println("Yes");
		else System.out.println("No");
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String cd = vd.readLine();
		String[] fd = cd.split("");
		int n = Integer.parseInt(cd);
		int k =0;
		for(int i=0;i<fd.length;++i) {
			k=k+Integer.parseInt(fd[i]);
		}
		if(n%k==0) System.out.println("Yes");
		else System.out.println("No");
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader vd = new BufferedReader(new InputStreamReader(System.in));
		String cd = vd.readLine();
		String[] fd = cd.split("");
		int n = Integer.parseInt(cd);
		int k =0;
		for(int i=0;i<fd.length;++i) {
			k=k+Integer.parseInt(fd[i]);
		}
		if(n%k==0) System.out.println("Yes");
		else System.out.println("No");
	}

}
