import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String ns = sc.nextLine();
        int n;
        int sn=0;

        sc.close();
        n = Integer.parseInt(ns);
        for(int i=0; i<ns.length(); i++) {
            sn += Integer.parseInt("" + ns.charAt(i));
        }

        if(n%sn == 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 sc = new Scanner(System.in);
        String ns = sc.nextLine();
        int n;
        int sn=0;

        sc.close();
        n = Integer.parseInt(ns);
        for(int i=0; i<ns.length(); i++) {
            sn += Integer.parseInt("" + ns.charAt(i));
        }

        if(n%sn == 0) System.out.println("Yes");
        else System.out.println("No"); 
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String ns = sc.nextLine();
        int n;
        int sn=0;

        sc.close();
        n = Integer.parseInt(ns);
        for(int i=0; i<ns.length(); i++) {
            sn += Integer.parseInt("" + ns.charAt(i));
        }

        if(n%sn == 0) System.out.println("Yes");
        else System.out.println("No"); 
    } main {
        Scanner sc = new Scanner(System.in);
        String ns = sc.nextLine();
        int n;
        int sn=0;

        sc.close();
        n = Integer.parseInt(ns);
        for(int i=0; i<ns.length(); i++) {
            sn += Integer.parseInt("" + ns.charAt(i));
        }

        if(n%sn == 0) System.out.println("Yes");
        else System.out.println("No"); 
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String ns = sc.nextLine(); ns sc.nextLine() sc.nextLine sc int n; n int sn=0; sn 0 sc.close() sc.close sc n = Integer.parseInt(ns) n Integer.parseInt(ns) Integer.parseInt Integer ns for(int i=0; i<ns.length(); i++) {
            sn += Integer.parseInt("" + ns.charAt(i));
        } int i=0; int i=0; i 0 i<ns.length() i ns.length() ns.length ns i++ i++ i {
            sn += Integer.parseInt("" + ns.charAt(i));
        } {
            sn += Integer.parseInt("" + ns.charAt(i));
        } sn += Integer.parseInt("" + ns.charAt(i)) sn Integer.parseInt("" + ns.charAt(i)) Integer.parseInt Integer "" + ns.charAt(i) "" ns.charAt(i) ns.charAt ns i if(n%sn == 0) System.out.println("Yes");
        else System.out.println("No"); n%sn == 0 n%sn n sn 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 sc = new Scanner(System.in);
        String ns = sc.nextLine();
        int n;
        int sn=0;

        sc.close();
        n = Integer.parseInt(ns);
        for(int i=0; i<ns.length(); i++) {
            sn += Integer.parseInt("" + ns.charAt(i));
        }

        if(n%sn == 0) System.out.println("Yes");
        else System.out.println("No"); 
    }
}