import java.util.Scanner;


public class Main {

	public static Scanner scanner = new Scanner(System.in);
	public static void main(String[] args) {
		String s = scanner.next();
		int mod = 0;
		for(int i=0; i<s.length(); i++) {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		}
		
		if(Long.valueOf(s) % mod == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static Scanner scanner = new Scanner(System.in);
	public static void main(String[] args) {
		String s = scanner.next();
		int mod = 0;
		for(int i=0; i<s.length(); i++) {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		}
		
		if(Long.valueOf(s) % mod == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}

} Main public static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[] args) {
		String s = scanner.next();
		int mod = 0;
		for(int i=0; i<s.length(); i++) {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		}
		
		if(Long.valueOf(s) % mod == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	} main {
		String s = scanner.next();
		int mod = 0;
		for(int i=0; i<s.length(); i++) {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		}
		
		if(Long.valueOf(s) % mod == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	} String s = scanner.next(); s scanner.next() scanner.next scanner int mod = 0; mod 0 for(int i=0; i<s.length(); i++) {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		} int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		} {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		} int n = ((int)(s.charAt(i) - '0')); n ((int)(s.charAt(i) - '0')) s.charAt(i) s.charAt s i '0' mod += n mod n if(Long.valueOf(s) % mod == 0)
			System.out.println("Yes");
		else
			System.out.println("No"); Long.valueOf(s) % mod == 0 Long.valueOf(s) % mod Long.valueOf(s) Long.valueOf Long s mod 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 Scanner scanner = new Scanner(System.in);
	public static void main(String[] args) {
		String s = scanner.next();
		int mod = 0;
		for(int i=0; i<s.length(); i++) {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		}
		
		if(Long.valueOf(s) % mod == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}

} public class Main {

	public static Scanner scanner = new Scanner(System.in);
	public static void main(String[] args) {
		String s = scanner.next();
		int mod = 0;
		for(int i=0; i<s.length(); i++) {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		}
		
		if(Long.valueOf(s) % mod == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}

} Main
import java.util.Scanner;


public class Main {

	public static Scanner scanner = new Scanner(System.in);
	public static void main(String[] args) {
		String s = scanner.next();
		int mod = 0;
		for(int i=0; i<s.length(); i++) {
			int n = ((int)(s.charAt(i) - '0'));
			mod += n;
		}
		
		if(Long.valueOf(s) % mod == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}

}
