import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = a;
        int ans = 0;
        while (a > 0) {
            ans += a%10;
            a /= 10;
        }
        System.out.println(b%ans==0?"Yes":"No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = a;
        int ans = 0;
        while (a > 0) {
            ans += a%10;
            a /= 10;
        }
        System.out.println(b%ans==0?"Yes":"No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = a;
        int ans = 0;
        while (a > 0) {
            ans += a%10;
            a /= 10;
        }
        System.out.println(b%ans==0?"Yes":"No");
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = a;
        int ans = 0;
        while (a > 0) {
            ans += a%10;
            a /= 10;
        }
        System.out.println(b%ans==0?"Yes":"No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = a; b a int ans = 0; ans 0 while (a > 0) {
            ans += a%10;
            a /= 10;
        } a > 0 a 0 {
            ans += a%10;
            a /= 10;
        } ans += a%10 ans a%10 a 10 a /= 10 a 10 System.out.println(b%ans==0?"Yes":"No") System.out.println System.out System System.out b%ans==0?"Yes":"No" b%ans==0 b%ans b ans 0 "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = a;
        int ans = 0;
        while (a > 0) {
            ans += a%10;
            a /= 10;
        }
        System.out.println(b%ans==0?"Yes":"No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = a;
        int ans = 0;
        while (a > 0) {
            ans += a%10;
            a /= 10;
        }
        System.out.println(b%ans==0?"Yes":"No");
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = a;
        int ans = 0;
        while (a > 0) {
            ans += a%10;
            a /= 10;
        }
        System.out.println(b%ans==0?"Yes":"No");
    }
}