import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int n = N;
		int keta;
		int sum = 0;
		int a[] = new int[9];
		for(int i = 8;i >= 0;i--) {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		}
		if(N%sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int n = N;
		int keta;
		int sum = 0;
		int a[] = new int[9];
		for(int i = 8;i >= 0;i--) {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		}
		if(N%sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int n = N;
		int keta;
		int sum = 0;
		int a[] = new int[9];
		for(int i = 8;i >= 0;i--) {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		}
		if(N%sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int n = N;
		int keta;
		int sum = 0;
		int a[] = new int[9];
		for(int i = 8;i >= 0;i--) {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		}
		if(N%sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int n = N; n N int keta; keta int sum = 0; sum 0 int a[] = new int[9]; a new int[9] 9 for(int i = 8;i >= 0;i--) {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		} int i = 8; int i = 8; i 8 i >= 0 i 0 i-- i-- i {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		} {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		} a[i] = (int)Math.pow(10, i) a[i] a i (int)Math.pow(10, i) Math.pow Math 10 i keta = n/a[i] keta n/a[i] n a[i] a i n = n - a[i] * keta n n - a[i] * keta n a[i] * keta a[i] a i keta sum = sum + keta sum sum + keta sum keta if(N%sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} N%sum == 0 N%sum N sum 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" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int n = N;
		int keta;
		int sum = 0;
		int a[] = new int[9];
		for(int i = 8;i >= 0;i--) {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		}
		if(N%sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int n = N;
		int keta;
		int sum = 0;
		int a[] = new int[9];
		for(int i = 8;i >= 0;i--) {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		}
		if(N%sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int n = N;
		int keta;
		int sum = 0;
		int a[] = new int[9];
		for(int i = 8;i >= 0;i--) {
			a[i] = (int)Math.pow(10, i);
			keta = n/a[i];
			n = n - a[i] * keta;
			sum = sum + keta;
		}
		if(N%sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}
}