import java.util.Scanner;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 値の取得
        String target = sc.nextLine();
        String[] arr;
        arr = target.split("");

        int sum = 0;

        for (String item : arr) {
        	sum += Integer.parseInt(item);
        }

        if (Integer.parseInt(target) % sum == 0) {
        	System.out.println("Yes");
        } else {
        	System.out.println("No");
        }

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

        Scanner sc = new Scanner(System.in);

        // 値の取得
        String target = sc.nextLine();
        String[] arr;
        arr = target.split("");

        int sum = 0;

        for (String item : arr) {
        	sum += Integer.parseInt(item);
        }

        if (Integer.parseInt(target) % sum == 0) {
        	System.out.println("Yes");
        } else {
        	System.out.println("No");
        }

    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 値の取得
        String target = sc.nextLine();
        String[] arr;
        arr = target.split("");

        int sum = 0;

        for (String item : arr) {
        	sum += Integer.parseInt(item);
        }

        if (Integer.parseInt(target) % sum == 0) {
        	System.out.println("Yes");
        } else {
        	System.out.println("No");
        }

    } main {

        Scanner sc = new Scanner(System.in);

        // 値の取得
        String target = sc.nextLine();
        String[] arr;
        arr = target.split("");

        int sum = 0;

        for (String item : arr) {
        	sum += Integer.parseInt(item);
        }

        if (Integer.parseInt(target) % sum == 0) {
        	System.out.println("Yes");
        } else {
        	System.out.println("No");
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String target = sc.nextLine(); target sc.nextLine() sc.nextLine sc String[] arr; arr arr = target.split("") arr target.split("") target.split target "" int sum = 0; sum 0 for (String item : arr) {
        	sum += Integer.parseInt(item);
        } String item arr {
        	sum += Integer.parseInt(item);
        } {
        	sum += Integer.parseInt(item);
        } sum += Integer.parseInt(item) sum Integer.parseInt(item) Integer.parseInt Integer item if (Integer.parseInt(target) % sum == 0) {
        	System.out.println("Yes");
        } else {
        	System.out.println("No");
        } Integer.parseInt(target) % sum == 0 Integer.parseInt(target) % sum Integer.parseInt(target) Integer.parseInt Integer target sum 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 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 値の取得
        String target = sc.nextLine();
        String[] arr;
        arr = target.split("");

        int sum = 0;

        for (String item : arr) {
        	sum += Integer.parseInt(item);
        }

        if (Integer.parseInt(target) % sum == 0) {
        	System.out.println("Yes");
        } else {
        	System.out.println("No");
        }

    }
} public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 値の取得
        String target = sc.nextLine();
        String[] arr;
        arr = target.split("");

        int sum = 0;

        for (String item : arr) {
        	sum += Integer.parseInt(item);
        }

        if (Integer.parseInt(target) % sum == 0) {
        	System.out.println("Yes");
        } else {
        	System.out.println("No");
        }

    }
} Main
import java.util.Scanner;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        // 値の取得
        String target = sc.nextLine();
        String[] arr;
        arr = target.split("");

        int sum = 0;

        for (String item : arr) {
        	sum += Integer.parseInt(item);
        }

        if (Integer.parseInt(target) % sum == 0) {
        	System.out.println("Yes");
        } else {
        	System.out.println("No");
        }

    }
}