import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int num = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		}
		if (Integer.parseInt(N) % num == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}



		reader.close();
	}
}


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

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int num = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		}
		if (Integer.parseInt(N) % num == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}



		reader.close();
	}
} Main public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int num = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		}
		if (Integer.parseInt(N) % num == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}



		reader.close();
	} main {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int num = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		}
		if (Integer.parseInt(N) % num == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}



		reader.close();
	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) String N = reader.next(); N reader.next() reader.next reader int num = 0; num 0 for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		} int i = 0; int i = 0; i 0 i < N.length() i N.length() N.length N i++ i++ i {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		} {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		} char ch = N.charAt(i); ch N.charAt(i) N.charAt N i num += Character.getNumericValue(ch) num Character.getNumericValue(ch) Character.getNumericValue Character ch if (Integer.parseInt(N) % num == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} Integer.parseInt(N) % num == 0 Integer.parseInt(N) % num Integer.parseInt(N) Integer.parseInt Integer N num 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" reader.close() reader.close reader String[] args args public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int num = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		}
		if (Integer.parseInt(N) % num == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}



		reader.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int num = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		}
		if (Integer.parseInt(N) % num == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}



		reader.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String N = reader.next();
		int num = 0;
		for (int i = 0; i < N.length(); i++) {
			char ch = N.charAt(i);
			num += Character.getNumericValue(ch);
		}
		if (Integer.parseInt(N) % num == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}



		reader.close();
	}
}



