import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int n = sc.nextInt();
        int sum = 0;
		
        String sn = "" + n;
        
        for(String s : sn.split("")) {
          sum += Integer.parseInt(s);
        }
      
		// 出力
		System.out.println(n % sum == 0 ? "Yes" : "No");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int n = sc.nextInt();
        int sum = 0;
		
        String sn = "" + n;
        
        for(String s : sn.split("")) {
          sum += Integer.parseInt(s);
        }
      
		// 出力
		System.out.println(n % sum == 0 ? "Yes" : "No");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int n = sc.nextInt();
        int sum = 0;
		
        String sn = "" + n;
        
        for(String s : sn.split("")) {
          sum += Integer.parseInt(s);
        }
      
		// 出力
		System.out.println(n % sum == 0 ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int n = sc.nextInt();
        int sum = 0;
		
        String sn = "" + n;
        
        for(String s : sn.split("")) {
          sum += Integer.parseInt(s);
        }
      
		// 出力
		System.out.println(n % sum == 0 ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int sum = 0; sum 0 String sn = "" + n; sn "" + n "" n for(String s : sn.split("")) {
          sum += Integer.parseInt(s);
        } String s sn.split("") sn.split sn "" {
          sum += Integer.parseInt(s);
        } {
          sum += Integer.parseInt(s);
        } sum += Integer.parseInt(s) sum Integer.parseInt(s) Integer.parseInt Integer s System.out.println(n % sum == 0 ? "Yes" : "No") System.out.println System.out System System.out n % sum == 0 ? "Yes" : "No" n % sum == 0 n % sum n sum 0 "Yes" "No" String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int n = sc.nextInt();
        int sum = 0;
		
        String sn = "" + n;
        
        for(String s : sn.split("")) {
          sum += Integer.parseInt(s);
        }
      
		// 出力
		System.out.println(n % sum == 0 ? "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int n = sc.nextInt();
        int sum = 0;
		
        String sn = "" + n;
        
        for(String s : sn.split("")) {
          sum += Integer.parseInt(s);
        }
      
		// 出力
		System.out.println(n % sum == 0 ? "Yes" : "No");
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    
		// 整数の入力
		int n = sc.nextInt();
        int sum = 0;
		
        String sn = "" + n;
        
        for(String s : sn.split("")) {
          sum += Integer.parseInt(s);
        }
      
		// 出力
		System.out.println(n % sum == 0 ? "Yes" : "No");
	}
}