import java.util.Scanner;

public class Main {

	private static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int n = sc.nextInt();
		System.out.println(n % sumOfDigits(n) == 0 ? "Yes" : "No");
	}

	private static int sumOfDigits(int n) {
		int sum = 0;
		while (n > 0) {
			sum += n % 10;
			n = n / 10;
		}
		return sum;
	}
} import java.util.Scanner; Scanner java.util public class Main {

	private static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int n = sc.nextInt();
		System.out.println(n % sumOfDigits(n) == 0 ? "Yes" : "No");
	}

	private static int sumOfDigits(int n) {
		int sum = 0;
		while (n > 0) {
			sum += n % 10;
			n = n / 10;
		}
		return sum;
	}
} Main private static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		int n = sc.nextInt();
		System.out.println(n % sumOfDigits(n) == 0 ? "Yes" : "No");
	} main {
		int n = sc.nextInt();
		System.out.println(n % sumOfDigits(n) == 0 ? "Yes" : "No");
	} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc System.out.println(n % sumOfDigits(n) == 0 ? "Yes" : "No") System.out.println System.out System System.out n % sumOfDigits(n) == 0 ? "Yes" : "No" n % sumOfDigits(n) == 0 n % sumOfDigits(n) n sumOfDigits(n) sumOfDigits n 0 "Yes" "No" String[] args args private static int sumOfDigits(int n) {
		int sum = 0;
		while (n > 0) {
			sum += n % 10;
			n = n / 10;
		}
		return sum;
	} sumOfDigits {
		int sum = 0;
		while (n > 0) {
			sum += n % 10;
			n = n / 10;
		}
		return sum;
	} int sum = 0; sum 0 while (n > 0) {
			sum += n % 10;
			n = n / 10;
		} n > 0 n 0 {
			sum += n % 10;
			n = n / 10;
		} sum += n % 10 sum n % 10 n 10 n = n / 10 n n / 10 n 10 return sum; sum int n n public class Main {

	private static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int n = sc.nextInt();
		System.out.println(n % sumOfDigits(n) == 0 ? "Yes" : "No");
	}

	private static int sumOfDigits(int n) {
		int sum = 0;
		while (n > 0) {
			sum += n % 10;
			n = n / 10;
		}
		return sum;
	}
} public class Main {

	private static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int n = sc.nextInt();
		System.out.println(n % sumOfDigits(n) == 0 ? "Yes" : "No");
	}

	private static int sumOfDigits(int n) {
		int sum = 0;
		while (n > 0) {
			sum += n % 10;
			n = n / 10;
		}
		return sum;
	}
} Main
import java.util.Scanner;

public class Main {

	private static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int n = sc.nextInt();
		System.out.println(n % sumOfDigits(n) == 0 ? "Yes" : "No");
	}

	private static int sumOfDigits(int n) {
		int sum = 0;
		while (n > 0) {
			sum += n % 10;
			n = n / 10;
		}
		return sum;
	}
}