import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        char[] num = n.toCharArray();
        int sum = 0;
        for (char c : num) {
            sum += Character.getNumericValue(c);
        }
        if (Integer.parseInt(n) % sum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        char[] num = n.toCharArray();
        int sum = 0;
        for (char c : num) {
            sum += Character.getNumericValue(c);
        }
        if (Integer.parseInt(n) % sum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        char[] num = n.toCharArray();
        int sum = 0;
        for (char c : num) {
            sum += Character.getNumericValue(c);
        }
        if (Integer.parseInt(n) % sum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        char[] num = n.toCharArray();
        int sum = 0;
        for (char c : num) {
            sum += Character.getNumericValue(c);
        }
        if (Integer.parseInt(n) % sum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.next(); n sc.next() sc.next sc char[] num = n.toCharArray(); num n.toCharArray() n.toCharArray n int sum = 0; sum 0 for (char c : num) {
            sum += Character.getNumericValue(c);
        } char c num {
            sum += Character.getNumericValue(c);
        } {
            sum += Character.getNumericValue(c);
        } sum += Character.getNumericValue(c) sum Character.getNumericValue(c) Character.getNumericValue Character c if (Integer.parseInt(n) % sum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } Integer.parseInt(n) % sum == 0 Integer.parseInt(n) % sum Integer.parseInt(n) Integer.parseInt Integer n 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 {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        char[] num = n.toCharArray();
        int sum = 0;
        for (char c : num) {
            sum += Character.getNumericValue(c);
        }
        if (Integer.parseInt(n) % sum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        char[] num = n.toCharArray();
        int sum = 0;
        for (char c : num) {
            sum += Character.getNumericValue(c);
        }
        if (Integer.parseInt(n) % sum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        char[] num = n.toCharArray();
        int sum = 0;
        for (char c : num) {
            sum += Character.getNumericValue(c);
        }
        if (Integer.parseInt(n) % sum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
