import java.util.Scanner;

public class Main {

	public static void main(String[] args) {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		int s = 0;

		for(int i = 0; i < temp.length();i++) {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		}

		if(Integer.parseInt(temp) % s == 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 scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		int s = 0;

		for(int i = 0; i < temp.length();i++) {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		}

		if(Integer.parseInt(temp) % s == 0) {

			System.out.println("Yes");

		}else {

			System.out.println("No");

		}
	}
} Main public static void main(String[] args) {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		int s = 0;

		for(int i = 0; i < temp.length();i++) {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		}

		if(Integer.parseInt(temp) % s == 0) {

			System.out.println("Yes");

		}else {

			System.out.println("No");

		}
	} main {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		int s = 0;

		for(int i = 0; i < temp.length();i++) {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		}

		if(Integer.parseInt(temp) % s == 0) {

			System.out.println("Yes");

		}else {

			System.out.println("No");

		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String temp = scanner.nextLine(); temp scanner.nextLine() scanner.nextLine scanner int s = 0; s 0 for(int i = 0; i < temp.length();i++) {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		} int i = 0; int i = 0; i 0 i < temp.length() i temp.length() temp.length temp i++ i++ i {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		} {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		} String t = String.valueOf(temp.charAt(i)); t String.valueOf(temp.charAt(i)) String.valueOf String temp.charAt(i) temp.charAt temp i s += Integer.parseInt(t) s Integer.parseInt(t) Integer.parseInt Integer t if(Integer.parseInt(temp) % s == 0) {

			System.out.println("Yes");

		}else {

			System.out.println("No");

		} Integer.parseInt(temp) % s == 0 Integer.parseInt(temp) % s Integer.parseInt(temp) Integer.parseInt Integer temp s 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 scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		int s = 0;

		for(int i = 0; i < temp.length();i++) {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		}

		if(Integer.parseInt(temp) % s == 0) {

			System.out.println("Yes");

		}else {

			System.out.println("No");

		}
	}
} public class Main {

	public static void main(String[] args) {


		Scanner scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		int s = 0;

		for(int i = 0; i < temp.length();i++) {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		}

		if(Integer.parseInt(temp) % s == 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 scanner = new Scanner(System.in);

		String temp = scanner.nextLine();
		int s = 0;

		for(int i = 0; i < temp.length();i++) {

			String t = String.valueOf(temp.charAt(i));
			s += Integer.parseInt(t);

		}

		if(Integer.parseInt(temp) % s == 0) {

			System.out.println("Yes");

		}else {

			System.out.println("No");

		}
	}
}
