
import java.util.Scanner;

/**
 * Copyright © 2018 Chris. All rights reserved.
 *
 * @author Chris
 * 2018/6/23 11:55
 * @see meituan.n2018.Bturn
 */
public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        int S = sc.nextInt();
        int mod = 0;

        int tmp = S;
        while (tmp > 0) {
            mod += tmp % 10;
            tmp /= 10;
        }
        System.out.println(S % mod == 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 S = sc.nextInt();
        int mod = 0;

        int tmp = S;
        while (tmp > 0) {
            mod += tmp % 10;
            tmp /= 10;
        }
        System.out.println(S % mod == 0 ? "Yes" : "No");
    }
} Main public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        int S = sc.nextInt();
        int mod = 0;

        int tmp = S;
        while (tmp > 0) {
            mod += tmp % 10;
            tmp /= 10;
        }
        System.out.println(S % mod == 0 ? "Yes" : "No");
    } main {

        Scanner sc = new Scanner(System.in);

        int S = sc.nextInt();
        int mod = 0;

        int tmp = S;
        while (tmp > 0) {
            mod += tmp % 10;
            tmp /= 10;
        }
        System.out.println(S % mod == 0 ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = sc.nextInt(); S sc.nextInt() sc.nextInt sc int mod = 0; mod 0 int tmp = S; tmp S while (tmp > 0) {
            mod += tmp % 10;
            tmp /= 10;
        } tmp > 0 tmp 0 {
            mod += tmp % 10;
            tmp /= 10;
        } mod += tmp % 10 mod tmp % 10 tmp 10 tmp /= 10 tmp 10 System.out.println(S % mod == 0 ? "Yes" : "No") System.out.println System.out System System.out S % mod == 0 ? "Yes" : "No" S % mod == 0 S % mod S mod 0 "Yes" "No" String args[] args public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        int S = sc.nextInt();
        int mod = 0;

        int tmp = S;
        while (tmp > 0) {
            mod += tmp % 10;
            tmp /= 10;
        }
        System.out.println(S % mod == 0 ? "Yes" : "No");
    }
} public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        int S = sc.nextInt();
        int mod = 0;

        int tmp = S;
        while (tmp > 0) {
            mod += tmp % 10;
            tmp /= 10;
        }
        System.out.println(S % mod == 0 ? "Yes" : "No");
    }
} Main

import java.util.Scanner;

/**
 * Copyright © 2018 Chris. All rights reserved.
 *
 * @author Chris
 * 2018/6/23 11:55
 * @see meituan.n2018.Bturn
 */
public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);

        int S = sc.nextInt();
        int mod = 0;

        int tmp = S;
        while (tmp > 0) {
            mod += tmp % 10;
            tmp /= 10;
        }
        System.out.println(S % mod == 0 ? "Yes" : "No");
    }
}
