import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		long number = sc.nextLong();

		long one = number % 10;
		long two = number % 100 - one;
		long three = number % 1000 - two - one;
		long four = number % 10000 - three - two - one;
		long five = number % 100000 - four - three - two - one;
		long six = number % 1000000 - five - four - three - two - one;
		long seven = number % 10000000 - six - five - four - three - two - one;
		long eight = number % 100000000 - seven - six - five - four - three - two - one;
		long nine = number % 1000000000 - eight - seven - six - five - four - three - two - one;
		long ten = number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one;

		long all = one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000;


		sc.close();

		if (all == 0) {
			all += 1;
		}
		
		if (number % all == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		long number = sc.nextLong();

		long one = number % 10;
		long two = number % 100 - one;
		long three = number % 1000 - two - one;
		long four = number % 10000 - three - two - one;
		long five = number % 100000 - four - three - two - one;
		long six = number % 1000000 - five - four - three - two - one;
		long seven = number % 10000000 - six - five - four - three - two - one;
		long eight = number % 100000000 - seven - six - five - four - three - two - one;
		long nine = number % 1000000000 - eight - seven - six - five - four - three - two - one;
		long ten = number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one;

		long all = one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000;


		sc.close();

		if (all == 0) {
			all += 1;
		}
		
		if (number % all == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		long number = sc.nextLong();

		long one = number % 10;
		long two = number % 100 - one;
		long three = number % 1000 - two - one;
		long four = number % 10000 - three - two - one;
		long five = number % 100000 - four - three - two - one;
		long six = number % 1000000 - five - four - three - two - one;
		long seven = number % 10000000 - six - five - four - three - two - one;
		long eight = number % 100000000 - seven - six - five - four - three - two - one;
		long nine = number % 1000000000 - eight - seven - six - five - four - three - two - one;
		long ten = number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one;

		long all = one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000;


		sc.close();

		if (all == 0) {
			all += 1;
		}
		
		if (number % all == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);

		long number = sc.nextLong();

		long one = number % 10;
		long two = number % 100 - one;
		long three = number % 1000 - two - one;
		long four = number % 10000 - three - two - one;
		long five = number % 100000 - four - three - two - one;
		long six = number % 1000000 - five - four - three - two - one;
		long seven = number % 10000000 - six - five - four - three - two - one;
		long eight = number % 100000000 - seven - six - five - four - three - two - one;
		long nine = number % 1000000000 - eight - seven - six - five - four - three - two - one;
		long ten = number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one;

		long all = one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000;


		sc.close();

		if (all == 0) {
			all += 1;
		}
		
		if (number % all == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long number = sc.nextLong(); number sc.nextLong() sc.nextLong sc long one = number % 10; one number % 10 number 10 long two = number % 100 - one; two number % 100 - one number % 100 number 100 one long three = number % 1000 - two - one; three number % 1000 - two - one number % 1000 - two - one number % 1000 number 1000 two one long four = number % 10000 - three - two - one; four number % 10000 - three - two - one two number % 10000 - three - two - one number % 10000 number 10000 three two one long five = number % 100000 - four - three - two - one; five number % 100000 - four - three - two - one two three number % 100000 - four - three - two - one number % 100000 number 100000 four three two one long six = number % 1000000 - five - four - three - two - one; six number % 1000000 - five - four - three - two - one two three four number % 1000000 - five - four - three - two - one number % 1000000 number 1000000 five four three two one long seven = number % 10000000 - six - five - four - three - two - one; seven number % 10000000 - six - five - four - three - two - one two three four five number % 10000000 - six - five - four - three - two - one number % 10000000 number 10000000 six five four three two one long eight = number % 100000000 - seven - six - five - four - three - two - one; eight number % 100000000 - seven - six - five - four - three - two - one two three four five six number % 100000000 - seven - six - five - four - three - two - one number % 100000000 number 100000000 seven six five four three two one long nine = number % 1000000000 - eight - seven - six - five - four - three - two - one; nine number % 1000000000 - eight - seven - six - five - four - three - two - one two three four five six seven number % 1000000000 - eight - seven - six - five - four - three - two - one number % 1000000000 number 1000000000 eight seven six five four three two one long ten = number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one; ten number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one two three four five six seven eight number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one number / 10 % 1000000000 number / 10 number 10 1000000000 nine eight seven six five four three two one long all = one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000; all one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000 nine / 100000000 eight / 10000000 seven / 1000000 six / 100000 five / 10000 four / 1000 three / 100 one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000 one two / 10 two 10 three / 100 three 100 four / 1000 four 1000 five / 10000 five 10000 six / 100000 six 100000 seven / 1000000 seven 1000000 eight / 10000000 eight 10000000 nine / 100000000 nine 100000000 ten / 1000000000 ten 1000000000 sc.close() sc.close sc if (all == 0) {
			all += 1;
		} all == 0 all 0 {
			all += 1;
		} all += 1 all 1 if (number % all == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} number % all == 0 number % all number all 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);

		long number = sc.nextLong();

		long one = number % 10;
		long two = number % 100 - one;
		long three = number % 1000 - two - one;
		long four = number % 10000 - three - two - one;
		long five = number % 100000 - four - three - two - one;
		long six = number % 1000000 - five - four - three - two - one;
		long seven = number % 10000000 - six - five - four - three - two - one;
		long eight = number % 100000000 - seven - six - five - four - three - two - one;
		long nine = number % 1000000000 - eight - seven - six - five - four - three - two - one;
		long ten = number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one;

		long all = one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000;


		sc.close();

		if (all == 0) {
			all += 1;
		}
		
		if (number % all == 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);

		long number = sc.nextLong();

		long one = number % 10;
		long two = number % 100 - one;
		long three = number % 1000 - two - one;
		long four = number % 10000 - three - two - one;
		long five = number % 100000 - four - three - two - one;
		long six = number % 1000000 - five - four - three - two - one;
		long seven = number % 10000000 - six - five - four - three - two - one;
		long eight = number % 100000000 - seven - six - five - four - three - two - one;
		long nine = number % 1000000000 - eight - seven - six - five - four - three - two - one;
		long ten = number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one;

		long all = one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000;


		sc.close();

		if (all == 0) {
			all += 1;
		}
		
		if (number % all == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		long number = sc.nextLong();

		long one = number % 10;
		long two = number % 100 - one;
		long three = number % 1000 - two - one;
		long four = number % 10000 - three - two - one;
		long five = number % 100000 - four - three - two - one;
		long six = number % 1000000 - five - four - three - two - one;
		long seven = number % 10000000 - six - five - four - three - two - one;
		long eight = number % 100000000 - seven - six - five - four - three - two - one;
		long nine = number % 1000000000 - eight - seven - six - five - four - three - two - one;
		long ten = number / 10 % 1000000000 - nine - eight - seven - six - five - four - three - two - one;

		long all = one + two / 10 + three / 100 + four / 1000 + five / 10000 + six / 100000 + seven / 1000000
				+ eight / 10000000 + nine / 100000000 + ten / 1000000000;


		sc.close();

		if (all == 0) {
			all += 1;
		}
		
		if (number % all == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

}
