import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   String s = scanner.next();
		   int N = Integer.parseInt(s);
		   int count  = 0;
		   
		   for(int i = 0; i < s.length();) 
		   {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   }
		    
		   if(N % count == 0) 
		   {
			   System.out.println("Yes");
		   }
		   else 
		   {
			   System.out.println("No");
		   }
		    scanner.close(); }
		  } import java.util.Scanner; Scanner java.util public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   String s = scanner.next();
		   int N = Integer.parseInt(s);
		   int count  = 0;
		   
		   for(int i = 0; i < s.length();) 
		   {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   }
		    
		   if(N % count == 0) 
		   {
			   System.out.println("Yes");
		   }
		   else 
		   {
			   System.out.println("No");
		   }
		    scanner.close(); }
		  } Main public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   String s = scanner.next();
		   int N = Integer.parseInt(s);
		   int count  = 0;
		   
		   for(int i = 0; i < s.length();) 
		   {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   }
		    
		   if(N % count == 0) 
		   {
			   System.out.println("Yes");
		   }
		   else 
		   {
			   System.out.println("No");
		   }
		    scanner.close(); } main {
		    Scanner scanner = new Scanner(System.in);
		    
		   String s = scanner.next();
		   int N = Integer.parseInt(s);
		   int count  = 0;
		   
		   for(int i = 0; i < s.length();) 
		   {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   }
		    
		   if(N % count == 0) 
		   {
			   System.out.println("Yes");
		   }
		   else 
		   {
			   System.out.println("No");
		   }
		    scanner.close(); } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.next(); s scanner.next() scanner.next scanner int N = Integer.parseInt(s); N Integer.parseInt(s) Integer.parseInt Integer s int count  = 0; count 0 for(int i = 0; i < s.length();) 
		   {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   } int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   } {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   } int j = Integer.parseInt(s.substring(i , i + 1)); j Integer.parseInt(s.substring(i , i + 1)) Integer.parseInt Integer s.substring(i , i + 1) s.substring s i i + 1 i 1 count = count + j count count + j count j i++ i if(N % count == 0) 
		   {
			   System.out.println("Yes");
		   }
		   else 
		   {
			   System.out.println("No");
		   } N % count == 0 N % count N count 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" scanner.close() scanner.close scanner String args[] args public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   String s = scanner.next();
		   int N = Integer.parseInt(s);
		   int count  = 0;
		   
		   for(int i = 0; i < s.length();) 
		   {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   }
		    
		   if(N % count == 0) 
		   {
			   System.out.println("Yes");
		   }
		   else 
		   {
			   System.out.println("No");
		   }
		    scanner.close(); }
		  } public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   String s = scanner.next();
		   int N = Integer.parseInt(s);
		   int count  = 0;
		   
		   for(int i = 0; i < s.length();) 
		   {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   }
		    
		   if(N % count == 0) 
		   {
			   System.out.println("Yes");
		   }
		   else 
		   {
			   System.out.println("No");
		   }
		    scanner.close(); }
		  } Main
import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		   String s = scanner.next();
		   int N = Integer.parseInt(s);
		   int count  = 0;
		   
		   for(int i = 0; i < s.length();) 
		   {
			   int j = Integer.parseInt(s.substring(i , i + 1));
			   count = count + j;
				i++;   
		   }
		    
		   if(N % count == 0) 
		   {
			   System.out.println("Yes");
		   }
		   else 
		   {
			   System.out.println("No");
		   }
		    scanner.close(); }
		  }