import java.util.*;
 
public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
      long nam = in.nextLong();
      int cnt = String.valueOf( nam ).length();
      int sum = 0;
      
      long memo = nam;
      for(int i = 0;i < cnt;i++){
      		sum += memo%10;
        	memo /=10;
      }
      
      if(nam%sum==0){
         System.out.print("Yes"); 
      }else{
         System.out.print("No");
      }
      

      

	}
} import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
      long nam = in.nextLong();
      int cnt = String.valueOf( nam ).length();
      int sum = 0;
      
      long memo = nam;
      for(int i = 0;i < cnt;i++){
      		sum += memo%10;
        	memo /=10;
      }
      
      if(nam%sum==0){
         System.out.print("Yes"); 
      }else{
         System.out.print("No");
      }
      

      

	}
} Main public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
      long nam = in.nextLong();
      int cnt = String.valueOf( nam ).length();
      int sum = 0;
      
      long memo = nam;
      for(int i = 0;i < cnt;i++){
      		sum += memo%10;
        	memo /=10;
      }
      
      if(nam%sum==0){
         System.out.print("Yes"); 
      }else{
         System.out.print("No");
      }
      

      

	} main {
		Scanner in = new Scanner(System.in);
		
      long nam = in.nextLong();
      int cnt = String.valueOf( nam ).length();
      int sum = 0;
      
      long memo = nam;
      for(int i = 0;i < cnt;i++){
      		sum += memo%10;
        	memo /=10;
      }
      
      if(nam%sum==0){
         System.out.print("Yes"); 
      }else{
         System.out.print("No");
      }
      

      

	} Scanner in = new Scanner(System.in); in new Scanner(System.in) long nam = in.nextLong(); nam in.nextLong() in.nextLong in int cnt = String.valueOf( nam ).length(); cnt String.valueOf( nam ).length() String.valueOf( nam ).length String.valueOf( nam ) String.valueOf String nam int sum = 0; sum 0 long memo = nam; memo nam for(int i = 0;i < cnt;i++){
      		sum += memo%10;
        	memo /=10;
      } int i = 0; int i = 0; i 0 i < cnt i cnt i++ i++ i {
      		sum += memo%10;
        	memo /=10;
      } {
      		sum += memo%10;
        	memo /=10;
      } sum += memo%10 sum memo%10 memo 10 memo /=10 memo 10 if(nam%sum==0){
         System.out.print("Yes"); 
      }else{
         System.out.print("No");
      } nam%sum==0 nam%sum nam sum 0 {
         System.out.print("Yes"); 
      } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
         System.out.print("No");
      } System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
      long nam = in.nextLong();
      int cnt = String.valueOf( nam ).length();
      int sum = 0;
      
      long memo = nam;
      for(int i = 0;i < cnt;i++){
      		sum += memo%10;
        	memo /=10;
      }
      
      if(nam%sum==0){
         System.out.print("Yes"); 
      }else{
         System.out.print("No");
      }
      

      

	}
} public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
      long nam = in.nextLong();
      int cnt = String.valueOf( nam ).length();
      int sum = 0;
      
      long memo = nam;
      for(int i = 0;i < cnt;i++){
      		sum += memo%10;
        	memo /=10;
      }
      
      if(nam%sum==0){
         System.out.print("Yes"); 
      }else{
         System.out.print("No");
      }
      

      

	}
} Main
import java.util.*;
 
public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
      long nam = in.nextLong();
      int cnt = String.valueOf( nam ).length();
      int sum = 0;
      
      long memo = nam;
      for(int i = 0;i < cnt;i++){
      		sum += memo%10;
        	memo /=10;
      }
      
      if(nam%sum==0){
         System.out.print("Yes"); 
      }else{
         System.out.print("No");
      }
      

      

	}
}