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

public class Main{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			long sum=0;
			for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			}
			if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java import java.math.*; math.* java public class Main{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			long sum=0;
			for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			}
			if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		}
	}
} Main static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) static int tc; tc static final int MOD=1_000_000_007; MOD 1_000_000_007 public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	} inputArray {
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	} String[] s=str.split(" "); s str.split(" ") str.split str " " long[] array=new long[s.length]; array new long[s.length] s.length s s.length for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		} int i=0; int i=0; i 0 i<s.length i s.length s s.length i++ i++ i {
			array[i]=Long.parseLong(s[i]);
		} {
			array[i]=Long.parseLong(s[i]);
		} array[i]=Long.parseLong(s[i]) array[i] array i Long.parseLong(s[i]) Long.parseLong Long s[i] s i return array; array String str str public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			long sum=0;
			for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			}
			if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		}
	} main {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			long sum=0;
			for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			}
			if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		}
	} tc=1 tc 1 while(tc-->0) {
			String str=br.readLine();
			long sum=0;
			for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			}
			if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		} tc-->0 tc-- tc 0 {
			String str=br.readLine();
			long sum=0;
			for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			}
			if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		} String str=br.readLine(); str br.readLine() br.readLine br long sum=0; sum 0 for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			} int i=0; int i=0; i 0 i<str.length() i str.length() str.length str i++ i++ i {
				sum+=str.charAt(i)-'0';
			} {
				sum+=str.charAt(i)-'0';
			} sum+=str.charAt(i)-'0' sum str.charAt(i)-'0' str.charAt(i) str.charAt str i '0' if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			} Long.parseLong(str)%sum==0 Long.parseLong(str)%sum Long.parseLong(str) Long.parseLong Long str sum 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{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			long sum=0;
			for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			}
			if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		}
	}
} public class Main{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			long sum=0;
			for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			}
			if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		}
	}
} Main
import java.io.*;
import java.util.*;
import java.math.*;

public class Main{
	static final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	static int tc;
	static final int MOD=1_000_000_007;
	public static long[] inputArray(String str){
		String[] s=str.split(" ");
		long[] array=new long[s.length];
		for(int i=0;i<s.length;i++) {
			array[i]=Long.parseLong(s[i]);
		}
		return array;
	}
	public static void main(String[] args)throws IOException {
		//tc=Integer.parseInt(br.readLine());
		tc=1;
		while(tc-->0) {
			String str=br.readLine();
			long sum=0;
			for(int i=0;i<str.length();i++) {
				sum+=str.charAt(i)-'0';
			}
			if(Long.parseLong(str)%sum==0) {
				System.out.println("Yes");
			}else {
				System.out.println("No");
			}
		}
	}
}