import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[line.length()];
        int box[] = new int[line.length()];
        int answw = Integer.parseInt(line);   //n
        int ans = 0;
        
        for(int i = 0;i<line.length();i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        }
        if(answw%ans == 0){
        	System.out.println("Yes");
        	
        }else{
        	System.out.println("No");
        }
        	
        
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[line.length()];
        int box[] = new int[line.length()];
        int answw = Integer.parseInt(line);   //n
        int ans = 0;
        
        for(int i = 0;i<line.length();i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        }
        if(answw%ans == 0){
        	System.out.println("Yes");
        	
        }else{
        	System.out.println("No");
        }
        	
        
	}
} Main public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[line.length()];
        int box[] = new int[line.length()];
        int answw = Integer.parseInt(line);   //n
        int ans = 0;
        
        for(int i = 0;i<line.length();i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        }
        if(answw%ans == 0){
        	System.out.println("Yes");
        	
        }else{
        	System.out.println("No");
        }
        	
        
	} main {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[line.length()];
        int box[] = new int[line.length()];
        int answw = Integer.parseInt(line);   //n
        int ans = 0;
        
        for(int i = 0;i<line.length();i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        }
        if(answw%ans == 0){
        	System.out.println("Yes");
        	
        }else{
        	System.out.println("No");
        }
        	
        
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String boxstr[] = new String[line.length()]; boxstr new String[line.length()] line.length() line.length line int box[] = new int[line.length()]; box new int[line.length()] line.length() line.length line int answw = Integer.parseInt(line); answw Integer.parseInt(line) Integer.parseInt Integer line int ans = 0; ans 0 for(int i = 0;i<line.length();i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        } int i = 0; int i = 0; i 0 i<line.length() i line.length() line.length line i++ i++ i {
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        } {
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        } boxstr[i] = String.valueOf(line.charAt(i)) boxstr[i] boxstr i String.valueOf(line.charAt(i)) String.valueOf String line.charAt(i) line.charAt line i box[i] = Integer.parseInt(boxstr[i]) box[i] box i Integer.parseInt(boxstr[i]) Integer.parseInt Integer boxstr[i] boxstr i ans +=box[i] ans box[i] box i if(answw%ans == 0){
        	System.out.println("Yes");
        	
        }else{
        	System.out.println("No");
        } answw%ans == 0 answw%ans answw ans 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 public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[line.length()];
        int box[] = new int[line.length()];
        int answw = Integer.parseInt(line);   //n
        int ans = 0;
        
        for(int i = 0;i<line.length();i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        }
        if(answw%ans == 0){
        	System.out.println("Yes");
        	
        }else{
        	System.out.println("No");
        }
        	
        
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[line.length()];
        int box[] = new int[line.length()];
        int answw = Integer.parseInt(line);   //n
        int ans = 0;
        
        for(int i = 0;i<line.length();i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        }
        if(answw%ans == 0){
        	System.out.println("Yes");
        	
        }else{
        	System.out.println("No");
        }
        	
        
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {

	public static void main(String[] args) throws Exception {
		
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String boxstr[] = new String[line.length()];
        int box[] = new int[line.length()];
        int answw = Integer.parseInt(line);   //n
        int ans = 0;
        
        for(int i = 0;i<line.length();i++){
        	
            boxstr[i] = String.valueOf(line.charAt(i));
            
            box[i] = Integer.parseInt(boxstr[i]);   //n
            
            ans +=box[i];
            
            
            
        }
        if(answw%ans == 0){
        	System.out.println("Yes");
        	
        }else{
        	System.out.println("No");
        }
        	
        
	}
}
