import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 0;
        for (int i = 0; i < String.valueOf(N).length(); i++) {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        }
        System.out.println(N % count == 0 ? "Yes" : "No");
    }
} 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();
        int count = 0;
        for (int i = 0; i < String.valueOf(N).length(); i++) {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        }
        System.out.println(N % count == 0 ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 0;
        for (int i = 0; i < String.valueOf(N).length(); i++) {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        }
        System.out.println(N % count == 0 ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 0;
        for (int i = 0; i < String.valueOf(N).length(); i++) {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        }
        System.out.println(N % count == 0 ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int count = 0; count 0 for (int i = 0; i < String.valueOf(N).length(); i++) {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        } int i = 0; int i = 0; i 0 i < String.valueOf(N).length() i String.valueOf(N).length() String.valueOf(N).length String.valueOf(N) String.valueOf String N i++ i++ i {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        } {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        } int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1)); a Integer.parseInt(String.valueOf(N).substring(i, i + 1)) Integer.parseInt Integer String.valueOf(N).substring(i, i + 1) String.valueOf(N).substring String.valueOf(N) String.valueOf String N i i + 1 i 1 count += a count a System.out.println(N % count == 0 ? "Yes" : "No") System.out.println System.out System System.out N % count == 0 ? "Yes" : "No" N % count == 0 N % count N count 0 "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 0;
        for (int i = 0; i < String.valueOf(N).length(); i++) {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        }
        System.out.println(N % count == 0 ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 0;
        for (int i = 0; i < String.valueOf(N).length(); i++) {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        }
        System.out.println(N % count == 0 ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int count = 0;
        for (int i = 0; i < String.valueOf(N).length(); i++) {
            int a = Integer.parseInt(String.valueOf(N).substring(i, i + 1));
            count += a;
        }
        System.out.println(N % count == 0 ? "Yes" : "No");
    }
}