import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int sn = 0;
        int nclone = n;
        while(nclone!=0){
            sn += nclone%10;
            nclone /= 10;
        }
        if(sn==0) {
            System.out.println("No");
        }else if(n%sn==0){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int sn = 0;
        int nclone = n;
        while(nclone!=0){
            sn += nclone%10;
            nclone /= 10;
        }
        if(sn==0) {
            System.out.println("No");
        }else 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);
        int n = sc.nextInt();
        int sn = 0;
        int nclone = n;
        while(nclone!=0){
            sn += nclone%10;
            nclone /= 10;
        }
        if(sn==0) {
            System.out.println("No");
        }else if(n%sn==0){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int sn = 0;
        int nclone = n;
        while(nclone!=0){
            sn += nclone%10;
            nclone /= 10;
        }
        if(sn==0) {
            System.out.println("No");
        }else if(n%sn==0){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int sn = 0; sn 0 int nclone = n; nclone n while(nclone!=0){
            sn += nclone%10;
            nclone /= 10;
        } nclone!=0 nclone 0 {
            sn += nclone%10;
            nclone /= 10;
        } sn += nclone%10 sn nclone%10 nclone 10 nclone /= 10 nclone 10 if(sn==0) {
            System.out.println("No");
        }else if(n%sn==0){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        } sn==0 sn 0 {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" 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("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
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int sn = 0;
        int nclone = n;
        while(nclone!=0){
            sn += nclone%10;
            nclone /= 10;
        }
        if(sn==0) {
            System.out.println("No");
        }else if(n%sn==0){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
}