import java.util.Scanner;
 
public class Main {
 
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt();
		String answer;
 
		int n = N;
 
		int sum = 0;
        while (n != 0) {
            sum += n % 10;
            n /= 10;
        }
 
        if((N%sum)==0) answer = "Yes";
        else answer = "No";
 
		sc.close();
 
	    System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main {
 
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt();
		String answer;
 
		int n = N;
 
		int sum = 0;
        while (n != 0) {
            sum += n % 10;
            n /= 10;
        }
 
        if((N%sum)==0) answer = "Yes";
        else answer = "No";
 
		sc.close();
 
	    System.out.println(answer);
    }
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt();
		String answer;
 
		int n = N;
 
		int sum = 0;
        while (n != 0) {
            sum += n % 10;
            n /= 10;
        }
 
        if((N%sum)==0) answer = "Yes";
        else answer = "No";
 
		sc.close();
 
	    System.out.println(answer);
    } main {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt();
		String answer;
 
		int n = N;
 
		int sum = 0;
        while (n != 0) {
            sum += n % 10;
            n /= 10;
        }
 
        if((N%sum)==0) answer = "Yes";
        else answer = "No";
 
		sc.close();
 
	    System.out.println(answer);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String answer; answer int n = N; n N int sum = 0; sum 0 while (n != 0) {
            sum += n % 10;
            n /= 10;
        } n != 0 n 0 {
            sum += n % 10;
            n /= 10;
        } sum += n % 10 sum n % 10 n 10 n /= 10 n 10 if((N%sum)==0) answer = "Yes";
        else answer = "No"; (N%sum)==0 (N%sum) N sum 0 answer = "Yes" answer "Yes" answer = "No" answer "No" sc.close() sc.close sc System.out.println(answer) System.out.println System.out System System.out answer String args[] args public class Main {
 
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt();
		String answer;
 
		int n = N;
 
		int sum = 0;
        while (n != 0) {
            sum += n % 10;
            n /= 10;
        }
 
        if((N%sum)==0) answer = "Yes";
        else answer = "No";
 
		sc.close();
 
	    System.out.println(answer);
    }
} public class Main {
 
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt();
		String answer;
 
		int n = N;
 
		int sum = 0;
        while (n != 0) {
            sum += n % 10;
            n /= 10;
        }
 
        if((N%sum)==0) answer = "Yes";
        else answer = "No";
 
		sc.close();
 
	    System.out.println(answer);
    }
} Main
import java.util.Scanner;
 
public class Main {
 
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt();
		String answer;
 
		int n = N;
 
		int sum = 0;
        while (n != 0) {
            sum += n % 10;
            n /= 10;
        }
 
        if((N%sum)==0) answer = "Yes";
        else answer = "No";
 
		sc.close();
 
	    System.out.println(answer);
    }
}