import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String number = scan.next();
        
        int digit = 0;
        
        int numberin = number.length();
        
        int l = Integer.valueOf(number);
        for(int i = 0 ; i < numberin ; i++){
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        }
        
        int ans = l % digit;
        
        if(ans != 0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String number = scan.next();
        
        int digit = 0;
        
        int numberin = number.length();
        
        int l = Integer.valueOf(number);
        for(int i = 0 ; i < numberin ; i++){
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        }
        
        int ans = l % digit;
        
        if(ans != 0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String number = scan.next();
        
        int digit = 0;
        
        int numberin = number.length();
        
        int l = Integer.valueOf(number);
        for(int i = 0 ; i < numberin ; i++){
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        }
        
        int ans = l % digit;
        
        if(ans != 0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    } main {
        
        Scanner scan = new Scanner(System.in);
        String number = scan.next();
        
        int digit = 0;
        
        int numberin = number.length();
        
        int l = Integer.valueOf(number);
        for(int i = 0 ; i < numberin ; i++){
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        }
        
        int ans = l % digit;
        
        if(ans != 0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String number = scan.next(); number scan.next() scan.next scan int digit = 0; digit 0 int numberin = number.length(); numberin number.length() number.length number int l = Integer.valueOf(number); l Integer.valueOf(number) Integer.valueOf Integer number for(int i = 0 ; i < numberin ; i++){
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        } int i = 0 ; int i = 0 ; i 0 i < numberin i numberin i++ i++ i {
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        } {
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        } digit = digit + Integer.valueOf(number.substring(i , i + 1)) digit digit + Integer.valueOf(number.substring(i , i + 1)) digit Integer.valueOf(number.substring(i , i + 1)) Integer.valueOf Integer number.substring(i , i + 1) number.substring number i i + 1 i 1 int ans = l % digit; ans l % digit l digit if(ans != 0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } ans != 0 ans 0 {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String number = scan.next();
        
        int digit = 0;
        
        int numberin = number.length();
        
        int l = Integer.valueOf(number);
        for(int i = 0 ; i < numberin ; i++){
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        }
        
        int ans = l % digit;
        
        if(ans != 0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String number = scan.next();
        
        int digit = 0;
        
        int numberin = number.length();
        
        int l = Integer.valueOf(number);
        for(int i = 0 ; i < numberin ; i++){
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        }
        
        int ans = l % digit;
        
        if(ans != 0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String number = scan.next();
        
        int digit = 0;
        
        int numberin = number.length();
        
        int l = Integer.valueOf(number);
        for(int i = 0 ; i < numberin ; i++){
            digit = digit + Integer.valueOf(number.substring(i , i + 1));
        }
        
        int ans = l % digit;
        
        if(ans != 0) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
}