import java.util.Scanner;

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

        int n = scanner.nextInt();
        int s_n = 0;
        int n_sub = n;

        while(true){
            s_n += n%10;
            n /= 10;
            if(n == 0)break;
        }

        if(n_sub % s_n == 0)System.out.println("Yes");
        else System.out.println("No");

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

        int n = scanner.nextInt();
        int s_n = 0;
        int n_sub = n;

        while(true){
            s_n += n%10;
            n /= 10;
            if(n == 0)break;
        }

        if(n_sub % s_n == 0)System.out.println("Yes");
        else System.out.println("No");

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

        int n = scanner.nextInt();
        int s_n = 0;
        int n_sub = n;

        while(true){
            s_n += n%10;
            n /= 10;
            if(n == 0)break;
        }

        if(n_sub % s_n == 0)System.out.println("Yes");
        else System.out.println("No");

    } main {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int s_n = 0;
        int n_sub = n;

        while(true){
            s_n += n%10;
            n /= 10;
            if(n == 0)break;
        }

        if(n_sub % s_n == 0)System.out.println("Yes");
        else System.out.println("No");

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int s_n = 0; s_n 0 int n_sub = n; n_sub n while(true){
            s_n += n%10;
            n /= 10;
            if(n == 0)break;
        } true {
            s_n += n%10;
            n /= 10;
            if(n == 0)break;
        } s_n += n%10 s_n n%10 n 10 n /= 10 n 10 if(n == 0)break; n == 0 n 0 break; if(n_sub % s_n == 0)System.out.println("Yes");
        else System.out.println("No"); n_sub % s_n == 0 n_sub % s_n n_sub s_n 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.Scanner;

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

        int n = scanner.nextInt();
        int s_n = 0;
        int n_sub = n;

        while(true){
            s_n += n%10;
            n /= 10;
            if(n == 0)break;
        }

        if(n_sub % s_n == 0)System.out.println("Yes");
        else System.out.println("No");

    }
}
