import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
      int n = a;
	 int b = a%10;
      int i = 10;
while(a/i != 0){
    b += a%(i*10)/i;
  i *= 10;
}
     
      if(n%b==0){
		System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
      int n = a;
	 int b = a%10;
      int i = 10;
while(a/i != 0){
    b += a%(i*10)/i;
  i *= 10;
}
     
      if(n%b==0){
		System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
      int n = a;
	 int b = a%10;
      int i = 10;
while(a/i != 0){
    b += a%(i*10)/i;
  i *= 10;
}
     
      if(n%b==0){
		System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    } main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
      int n = a;
	 int b = a%10;
      int i = 10;
while(a/i != 0){
    b += a%(i*10)/i;
  i *= 10;
}
     
      if(n%b==0){
		System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int n = a; n a int b = a%10; b a%10 a 10 int i = 10; i 10 while(a/i != 0){
    b += a%(i*10)/i;
  i *= 10;
} a/i != 0 a/i a i 0 {
    b += a%(i*10)/i;
  i *= 10;
} b += a%(i*10)/i b a%(i*10)/i a%(i*10) a (i*10) i 10 i i *= 10 i 10 if(n%b==0){
		System.out.println("Yes");
      }else{
        System.out.println("No");
      } n%b==0 n%b n b 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){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
      int n = a;
	 int b = a%10;
      int i = 10;
while(a/i != 0){
    b += a%(i*10)/i;
  i *= 10;
}
     
      if(n%b==0){
		System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
      int n = a;
	 int b = a%10;
      int i = 10;
while(a/i != 0){
    b += a%(i*10)/i;
  i *= 10;
}
     
      if(n%b==0){
		System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
      int n = a;
	 int b = a%10;
      int i = 10;
while(a/i != 0){
    b += a%(i*10)/i;
  i *= 10;
}
     
      if(n%b==0){
		System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
}