import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] n = str.split("");
        int sum = 0;
        
        ListIterator<String> iterator = Arrays.asList(n).listIterator();
        
        while(iterator.hasNext()){
            sum += Integer.parseInt(iterator.next());
        }
        
        int num = Integer.parseInt(str);
        if(num % sum == 0) System.out.println("Yes");
        else System.out.println("No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] n = str.split("");
        int sum = 0;
        
        ListIterator<String> iterator = Arrays.asList(n).listIterator();
        
        while(iterator.hasNext()){
            sum += Integer.parseInt(iterator.next());
        }
        
        int num = Integer.parseInt(str);
        if(num % sum == 0) System.out.println("Yes");
        else System.out.println("No");
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] n = str.split("");
        int sum = 0;
        
        ListIterator<String> iterator = Arrays.asList(n).listIterator();
        
        while(iterator.hasNext()){
            sum += Integer.parseInt(iterator.next());
        }
        
        int num = Integer.parseInt(str);
        if(num % sum == 0) System.out.println("Yes");
        else System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] n = str.split("");
        int sum = 0;
        
        ListIterator<String> iterator = Arrays.asList(n).listIterator();
        
        while(iterator.hasNext()){
            sum += Integer.parseInt(iterator.next());
        }
        
        int num = Integer.parseInt(str);
        if(num % sum == 0) System.out.println("Yes");
        else System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc String[] n = str.split(""); n str.split("") str.split str "" int sum = 0; sum 0 ListIterator<String> iterator = Arrays.asList(n).listIterator(); iterator Arrays.asList(n).listIterator() Arrays.asList(n).listIterator Arrays.asList(n) Arrays.asList Arrays n while(iterator.hasNext()){
            sum += Integer.parseInt(iterator.next());
        } iterator.hasNext() iterator.hasNext iterator {
            sum += Integer.parseInt(iterator.next());
        } sum += Integer.parseInt(iterator.next()) sum Integer.parseInt(iterator.next()) Integer.parseInt Integer iterator.next() iterator.next iterator int num = Integer.parseInt(str); num Integer.parseInt(str) Integer.parseInt Integer str if(num % sum == 0) System.out.println("Yes");
        else System.out.println("No"); num % sum == 0 num % sum num sum 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 public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] n = str.split("");
        int sum = 0;
        
        ListIterator<String> iterator = Arrays.asList(n).listIterator();
        
        while(iterator.hasNext()){
            sum += Integer.parseInt(iterator.next());
        }
        
        int num = Integer.parseInt(str);
        if(num % sum == 0) System.out.println("Yes");
        else System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] n = str.split("");
        int sum = 0;
        
        ListIterator<String> iterator = Arrays.asList(n).listIterator();
        
        while(iterator.hasNext()){
            sum += Integer.parseInt(iterator.next());
        }
        
        int num = Integer.parseInt(str);
        if(num % sum == 0) System.out.println("Yes");
        else System.out.println("No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String[] n = str.split("");
        int sum = 0;
        
        ListIterator<String> iterator = Arrays.asList(n).listIterator();
        
        while(iterator.hasNext()){
            sum += Integer.parseInt(iterator.next());
        }
        
        int num = Integer.parseInt(str);
        if(num % sum == 0) System.out.println("Yes");
        else System.out.println("No");
    }
}
