import java.util.Scanner;
public class Main {
	public static Scanner sc = new Scanner(System.in);

	public static void main(String[] args){
		//A
		/*
		String s = sc.next();
		int ans = 0;
		for(int i = 0 ; i < 4 ; i++){
			if(s.charAt(i) == '+')
				ans++;
			else
				ans--;
		}
		System.out.println(ans);
		*/
		//B
		int n = sc.nextInt();
		int length = String.valueOf( n ).length();
		int sn = 0;
		for(int i  = 0; i < length ; i++){
			sn += n/(int)(Math.pow(10, i))%10;
		}
		if(n % sn == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static Scanner sc = new Scanner(System.in);

	public static void main(String[] args){
		//A
		/*
		String s = sc.next();
		int ans = 0;
		for(int i = 0 ; i < 4 ; i++){
			if(s.charAt(i) == '+')
				ans++;
			else
				ans--;
		}
		System.out.println(ans);
		*/
		//B
		int n = sc.nextInt();
		int length = String.valueOf( n ).length();
		int sn = 0;
		for(int i  = 0; i < length ; i++){
			sn += n/(int)(Math.pow(10, i))%10;
		}
		if(n % sn == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
} Main public static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args){
		//A
		/*
		String s = sc.next();
		int ans = 0;
		for(int i = 0 ; i < 4 ; i++){
			if(s.charAt(i) == '+')
				ans++;
			else
				ans--;
		}
		System.out.println(ans);
		*/
		//B
		int n = sc.nextInt();
		int length = String.valueOf( n ).length();
		int sn = 0;
		for(int i  = 0; i < length ; i++){
			sn += n/(int)(Math.pow(10, i))%10;
		}
		if(n % sn == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	} main {
		//A
		/*
		String s = sc.next();
		int ans = 0;
		for(int i = 0 ; i < 4 ; i++){
			if(s.charAt(i) == '+')
				ans++;
			else
				ans--;
		}
		System.out.println(ans);
		*/
		//B
		int n = sc.nextInt();
		int length = String.valueOf( n ).length();
		int sn = 0;
		for(int i  = 0; i < length ; i++){
			sn += n/(int)(Math.pow(10, i))%10;
		}
		if(n % sn == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int length = String.valueOf( n ).length(); length String.valueOf( n ).length() String.valueOf( n ).length String.valueOf( n ) String.valueOf String n int sn = 0; sn 0 for(int i  = 0; i < length ; i++){
			sn += n/(int)(Math.pow(10, i))%10;
		} int i  = 0; int i  = 0; i 0 i < length i length i++ i++ i {
			sn += n/(int)(Math.pow(10, i))%10;
		} {
			sn += n/(int)(Math.pow(10, i))%10;
		} sn += n/(int)(Math.pow(10, i))%10 sn n/(int)(Math.pow(10, i))%10 n/(int)(Math.pow(10, i)) n (int)(Math.pow(10, i)) Math.pow Math 10 i 10 if(n % sn == 0)
			System.out.println("Yes");
		else
			System.out.println("No"); n % sn == 0 n % sn n sn 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 sc = new Scanner(System.in);

	public static void main(String[] args){
		//A
		/*
		String s = sc.next();
		int ans = 0;
		for(int i = 0 ; i < 4 ; i++){
			if(s.charAt(i) == '+')
				ans++;
			else
				ans--;
		}
		System.out.println(ans);
		*/
		//B
		int n = sc.nextInt();
		int length = String.valueOf( n ).length();
		int sn = 0;
		for(int i  = 0; i < length ; i++){
			sn += n/(int)(Math.pow(10, i))%10;
		}
		if(n % sn == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
} public class Main {
	public static Scanner sc = new Scanner(System.in);

	public static void main(String[] args){
		//A
		/*
		String s = sc.next();
		int ans = 0;
		for(int i = 0 ; i < 4 ; i++){
			if(s.charAt(i) == '+')
				ans++;
			else
				ans--;
		}
		System.out.println(ans);
		*/
		//B
		int n = sc.nextInt();
		int length = String.valueOf( n ).length();
		int sn = 0;
		for(int i  = 0; i < length ; i++){
			sn += n/(int)(Math.pow(10, i))%10;
		}
		if(n % sn == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
} Main
import java.util.Scanner;
public class Main {
	public static Scanner sc = new Scanner(System.in);

	public static void main(String[] args){
		//A
		/*
		String s = sc.next();
		int ans = 0;
		for(int i = 0 ; i < 4 ; i++){
			if(s.charAt(i) == '+')
				ans++;
			else
				ans--;
		}
		System.out.println(ans);
		*/
		//B
		int n = sc.nextInt();
		int length = String.valueOf( n ).length();
		int sn = 0;
		for(int i  = 0; i < length ; i++){
			sn += n/(int)(Math.pow(10, i))%10;
		}
		if(n % sn == 0)
			System.out.println("Yes");
		else
			System.out.println("No");
	}
}
