import java.util.Scanner;
	public class Main {
		private static Scanner k;
	
		public static void main(String args[]){ 
			 k = new Scanner(System.in);
			 String stringToCheck= k.nextLine(); 
		        int temp = 0; 
		        int j,kr;
		        String Str;
		        kr=Integer.parseInt(stringToCheck);
		     
		  for (int i=0; i<stringToCheck.length(); i++){ 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     }  
		  if(kr%temp==0)System.out.println("Yes"); 
		  else {
			  System.out.println("No");
		  }
		        } 
	}
		   import java.util.Scanner; Scanner java.util public class Main {
		private static Scanner k;
	
		public static void main(String args[]){ 
			 k = new Scanner(System.in);
			 String stringToCheck= k.nextLine(); 
		        int temp = 0; 
		        int j,kr;
		        String Str;
		        kr=Integer.parseInt(stringToCheck);
		     
		  for (int i=0; i<stringToCheck.length(); i++){ 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     }  
		  if(kr%temp==0)System.out.println("Yes"); 
		  else {
			  System.out.println("No");
		  }
		        } 
	} Main private static Scanner k; k public static void main(String args[]){ 
			 k = new Scanner(System.in);
			 String stringToCheck= k.nextLine(); 
		        int temp = 0; 
		        int j,kr;
		        String Str;
		        kr=Integer.parseInt(stringToCheck);
		     
		  for (int i=0; i<stringToCheck.length(); i++){ 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     }  
		  if(kr%temp==0)System.out.println("Yes"); 
		  else {
			  System.out.println("No");
		  }
		        } main { 
			 k = new Scanner(System.in);
			 String stringToCheck= k.nextLine(); 
		        int temp = 0; 
		        int j,kr;
		        String Str;
		        kr=Integer.parseInt(stringToCheck);
		     
		  for (int i=0; i<stringToCheck.length(); i++){ 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     }  
		  if(kr%temp==0)System.out.println("Yes"); 
		  else {
			  System.out.println("No");
		  }
		        } k = new Scanner(System.in) k new Scanner(System.in) String stringToCheck= k.nextLine(); stringToCheck k.nextLine() k.nextLine k int temp = 0; temp 0 int j j kr; kr String Str; Str kr=Integer.parseInt(stringToCheck) kr Integer.parseInt(stringToCheck) Integer.parseInt Integer stringToCheck for (int i=0; i<stringToCheck.length(); i++){ 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     } int i=0; int i=0; i 0 i<stringToCheck.length() i stringToCheck.length() stringToCheck.length stringToCheck i++ i++ i { 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     } { 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     } Str=String.valueOf(stringToCheck.charAt(i)) Str String.valueOf(stringToCheck.charAt(i)) String.valueOf String stringToCheck.charAt(i) stringToCheck.charAt stringToCheck i j=Integer.parseInt(Str) j Integer.parseInt(Str) Integer.parseInt Integer Str temp=temp+j temp temp+j temp j if(kr%temp==0)System.out.println("Yes"); 
		  else {
			  System.out.println("No");
		  } kr%temp==0 kr%temp kr temp 0 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 {
		private static Scanner k;
	
		public static void main(String args[]){ 
			 k = new Scanner(System.in);
			 String stringToCheck= k.nextLine(); 
		        int temp = 0; 
		        int j,kr;
		        String Str;
		        kr=Integer.parseInt(stringToCheck);
		     
		  for (int i=0; i<stringToCheck.length(); i++){ 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     }  
		  if(kr%temp==0)System.out.println("Yes"); 
		  else {
			  System.out.println("No");
		  }
		        } 
	} public class Main {
		private static Scanner k;
	
		public static void main(String args[]){ 
			 k = new Scanner(System.in);
			 String stringToCheck= k.nextLine(); 
		        int temp = 0; 
		        int j,kr;
		        String Str;
		        kr=Integer.parseInt(stringToCheck);
		     
		  for (int i=0; i<stringToCheck.length(); i++){ 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     }  
		  if(kr%temp==0)System.out.println("Yes"); 
		  else {
			  System.out.println("No");
		  }
		        } 
	} Main
import java.util.Scanner;
	public class Main {
		private static Scanner k;
	
		public static void main(String args[]){ 
			 k = new Scanner(System.in);
			 String stringToCheck= k.nextLine(); 
		        int temp = 0; 
		        int j,kr;
		        String Str;
		        kr=Integer.parseInt(stringToCheck);
		     
		  for (int i=0; i<stringToCheck.length(); i++){ 
		              
		            Str=String.valueOf(stringToCheck.charAt(i));
		            j=Integer.parseInt(Str);
		            temp=temp+j;
		     }  
		  if(kr%temp==0)System.out.println("Yes"); 
		  else {
			  System.out.println("No");
		  }
		        } 
	}
		  