import java.util.Scanner;

public class Main {
    static int N;
    static int[] a;

    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();

        int ntmp = N;
        int digitSum = 0;
        while (0 < ntmp) {
            digitSum += ntmp % 10;
            ntmp /= 10;
        }

        if(N % digitSum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    static int N;
    static int[] a;

    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();

        int ntmp = N;
        int digitSum = 0;
        while (0 < ntmp) {
            digitSum += ntmp % 10;
            ntmp /= 10;
        }

        if(N % digitSum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main static int N; N static int[] a; a public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();

        int ntmp = N;
        int digitSum = 0;
        while (0 < ntmp) {
            digitSum += ntmp % 10;
            ntmp /= 10;
        }

        if(N % digitSum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();

        int ntmp = N;
        int digitSum = 0;
        while (0 < ntmp) {
            digitSum += ntmp % 10;
            ntmp /= 10;
        }

        if(N % digitSum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } 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 int ntmp = N; ntmp N int digitSum = 0; digitSum 0 while (0 < ntmp) {
            digitSum += ntmp % 10;
            ntmp /= 10;
        } 0 < ntmp 0 ntmp {
            digitSum += ntmp % 10;
            ntmp /= 10;
        } digitSum += ntmp % 10 digitSum ntmp % 10 ntmp 10 ntmp /= 10 ntmp 10 if(N % digitSum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } N % digitSum == 0 N % digitSum N digitSum 0 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" String args[] args public class Main {
    static int N;
    static int[] a;

    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();

        int ntmp = N;
        int digitSum = 0;
        while (0 < ntmp) {
            digitSum += ntmp % 10;
            ntmp /= 10;
        }

        if(N % digitSum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {
    static int N;
    static int[] a;

    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();

        int ntmp = N;
        int digitSum = 0;
        while (0 < ntmp) {
            digitSum += ntmp % 10;
            ntmp /= 10;
        }

        if(N % digitSum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    static int N;
    static int[] a;

    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        scanner.close();

        int ntmp = N;
        int digitSum = 0;
        while (0 < ntmp) {
            digitSum += ntmp % 10;
            ntmp /= 10;
        }

        if(N % digitSum == 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}