import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int s = 0;
        String n = String.valueOf(N);
        for(int i = 0; i < n.length(); i++){
            s += Character.getNumericValue(n.charAt(i));
        }
        if (N%s == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int s = 0;
        String n = String.valueOf(N);
        for(int i = 0; i < n.length(); i++){
            s += Character.getNumericValue(n.charAt(i));
        }
        if (N%s == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int s = 0;
        String n = String.valueOf(N);
        for(int i = 0; i < n.length(); i++){
            s += Character.getNumericValue(n.charAt(i));
        }
        if (N%s == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int s = 0;
        String n = String.valueOf(N);
        for(int i = 0; i < n.length(); i++){
            s += Character.getNumericValue(n.charAt(i));
        }
        if (N%s == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int s = 0; s 0 String n = String.valueOf(N); n String.valueOf(N) String.valueOf String N for(int i = 0; i < n.length(); i++){
            s += Character.getNumericValue(n.charAt(i));
        } int i = 0; int i = 0; i 0 i < n.length() i n.length() n.length n i++ i++ i {
            s += Character.getNumericValue(n.charAt(i));
        } {
            s += Character.getNumericValue(n.charAt(i));
        } s += Character.getNumericValue(n.charAt(i)) s Character.getNumericValue(n.charAt(i)) Character.getNumericValue Character n.charAt(i) n.charAt n i if (N%s == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } N%s == 0 N%s N s 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{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int s = 0;
        String n = String.valueOf(N);
        for(int i = 0; i < n.length(); i++){
            s += Character.getNumericValue(n.charAt(i));
        }
        if (N%s == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int s = 0;
        String n = String.valueOf(N);
        for(int i = 0; i < n.length(); i++){
            s += Character.getNumericValue(n.charAt(i));
        }
        if (N%s == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main
import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int s = 0;
        String n = String.valueOf(N);
        for(int i = 0; i < n.length(); i++){
            s += Character.getNumericValue(n.charAt(i));
        }
        if (N%s == 0) {
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}