import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String ans;

        if(n % S(n) == 0)ans = "Yes";
        else ans = "No";

        System.out.println(ans);
    }

    public static int S(int n){
        int ans = 0;
        while(n > 0){
            ans += n % 10;
            n /= 10;
        }

        return ans;
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String ans;

        if(n % S(n) == 0)ans = "Yes";
        else ans = "No";

        System.out.println(ans);
    }

    public static int S(int n){
        int ans = 0;
        while(n > 0){
            ans += n % 10;
            n /= 10;
        }

        return ans;
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String ans;

        if(n % S(n) == 0)ans = "Yes";
        else ans = "No";

        System.out.println(ans);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String ans;

        if(n % S(n) == 0)ans = "Yes";
        else ans = "No";

        System.out.println(ans);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner String ans; ans if(n % S(n) == 0)ans = "Yes";
        else ans = "No"; n % S(n) == 0 n % S(n) n S(n) S n 0 ans = "Yes" ans "Yes" ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public static int S(int n){
        int ans = 0;
        while(n > 0){
            ans += n % 10;
            n /= 10;
        }

        return ans;
    } S {
        int ans = 0;
        while(n > 0){
            ans += n % 10;
            n /= 10;
        }

        return ans;
    } int ans = 0; ans 0 while(n > 0){
            ans += n % 10;
            n /= 10;
        } n > 0 n 0 {
            ans += n % 10;
            n /= 10;
        } ans += n % 10 ans n % 10 n 10 n /= 10 n 10 return ans; ans int n n public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String ans;

        if(n % S(n) == 0)ans = "Yes";
        else ans = "No";

        System.out.println(ans);
    }

    public static int S(int n){
        int ans = 0;
        while(n > 0){
            ans += n % 10;
            n /= 10;
        }

        return ans;
    }
} public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String ans;

        if(n % S(n) == 0)ans = "Yes";
        else ans = "No";

        System.out.println(ans);
    }

    public static int S(int n){
        int ans = 0;
        while(n > 0){
            ans += n % 10;
            n /= 10;
        }

        return ans;
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String ans;

        if(n % S(n) == 0)ans = "Yes";
        else ans = "No";

        System.out.println(ans);
    }

    public static int S(int n){
        int ans = 0;
        while(n > 0){
            ans += n % 10;
            n /= 10;
        }

        return ans;
    }
}