import java.util.Scanner;

public class Main {
    static int N;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();
    }

    public static void main(String[] args) {
        init();
        // logic
        logic();
    }

    static void logic() {
        int splitter = N;
        int total = 0;

        for (; splitter != 0; splitter /= 10) {
            total += splitter % 10;
        }

        System.out.println((N % total == 0) ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    static int N;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();
    }

    public static void main(String[] args) {
        init();
        // logic
        logic();
    }

    static void logic() {
        int splitter = N;
        int total = 0;

        for (; splitter != 0; splitter /= 10) {
            total += splitter % 10;
        }

        System.out.println((N % total == 0) ? "Yes" : "No");
    }
} Main static int N; N private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();
    } init {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) N = scanner.nextInt() N scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner public static void main(String[] args) {
        init();
        // logic
        logic();
    } main {
        init();
        // logic
        logic();
    } init() init logic() logic String[] args args static void logic() {
        int splitter = N;
        int total = 0;

        for (; splitter != 0; splitter /= 10) {
            total += splitter % 10;
        }

        System.out.println((N % total == 0) ? "Yes" : "No");
    } logic {
        int splitter = N;
        int total = 0;

        for (; splitter != 0; splitter /= 10) {
            total += splitter % 10;
        }

        System.out.println((N % total == 0) ? "Yes" : "No");
    } int splitter = N; splitter N int total = 0; total 0 for (; splitter != 0; splitter /= 10) {
            total += splitter % 10;
        } ; splitter != 0 splitter 0 splitter /= 10 splitter /= 10 splitter 10 {
            total += splitter % 10;
        } {
            total += splitter % 10;
        } total += splitter % 10 total splitter % 10 splitter 10 System.out.println((N % total == 0) ? "Yes" : "No") System.out.println System.out System System.out (N % total == 0) ? "Yes" : "No" (N % total == 0) N % total N total 0 "Yes" "No" public class Main {
    static int N;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();
    }

    public static void main(String[] args) {
        init();
        // logic
        logic();
    }

    static void logic() {
        int splitter = N;
        int total = 0;

        for (; splitter != 0; splitter /= 10) {
            total += splitter % 10;
        }

        System.out.println((N % total == 0) ? "Yes" : "No");
    }
} public class Main {
    static int N;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();
    }

    public static void main(String[] args) {
        init();
        // logic
        logic();
    }

    static void logic() {
        int splitter = N;
        int total = 0;

        for (; splitter != 0; splitter /= 10) {
            total += splitter % 10;
        }

        System.out.println((N % total == 0) ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {
    static int N;

    private static void init() {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();
    }

    public static void main(String[] args) {
        init();
        // logic
        logic();
    }

    static void logic() {
        int splitter = N;
        int total = 0;

        for (; splitter != 0; splitter /= 10) {
            total += splitter % 10;
        }

        System.out.println((N % total == 0) ? "Yes" : "No");
    }
}
