import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        int sn = 0;
        for (char c : n.toCharArray()) {
            sn += c - '0';
        }

        System.out.println(Integer.parseInt(n)%sn == 0 ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        int sn = 0;
        for (char c : n.toCharArray()) {
            sn += c - '0';
        }

        System.out.println(Integer.parseInt(n)%sn == 0 ? "Yes" : "No");
    }
} Main public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        int sn = 0;
        for (char c : n.toCharArray()) {
            sn += c - '0';
        }

        System.out.println(Integer.parseInt(n)%sn == 0 ? "Yes" : "No");
    } main {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        int sn = 0;
        for (char c : n.toCharArray()) {
            sn += c - '0';
        }

        System.out.println(Integer.parseInt(n)%sn == 0 ? "Yes" : "No");
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String n = in.nextLine(); n in.nextLine() in.nextLine in int sn = 0; sn 0 for (char c : n.toCharArray()) {
            sn += c - '0';
        } char c n.toCharArray() n.toCharArray n {
            sn += c - '0';
        } {
            sn += c - '0';
        } sn += c - '0' sn c - '0' c '0' System.out.println(Integer.parseInt(n)%sn == 0 ? "Yes" : "No") System.out.println System.out System System.out Integer.parseInt(n)%sn == 0 ? "Yes" : "No" Integer.parseInt(n)%sn == 0 Integer.parseInt(n)%sn Integer.parseInt(n) Integer.parseInt Integer n sn 0 "Yes" "No" String[] args args public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        int sn = 0;
        for (char c : n.toCharArray()) {
            sn += c - '0';
        }

        System.out.println(Integer.parseInt(n)%sn == 0 ? "Yes" : "No");
    }
} public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        int sn = 0;
        for (char c : n.toCharArray()) {
            sn += c - '0';
        }

        System.out.println(Integer.parseInt(n)%sn == 0 ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        int sn = 0;
        for (char c : n.toCharArray()) {
            sn += c - '0';
        }

        System.out.println(Integer.parseInt(n)%sn == 0 ? "Yes" : "No");
    }
}
