import java.util.Scanner;

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

		int sum =0;
		for (String s: line.split("")) {
			sum +=Integer.parseInt(s);
		}

		System.out.println(Integer.parseInt(line) % sum == 0 ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static final void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();

		int sum =0;
		for (String s: line.split("")) {
			sum +=Integer.parseInt(s);
		}

		System.out.println(Integer.parseInt(line) % sum == 0 ? "Yes" : "No");
	}
} Main public static final void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();

		int sum =0;
		for (String s: line.split("")) {
			sum +=Integer.parseInt(s);
		}

		System.out.println(Integer.parseInt(line) % sum == 0 ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();

		int sum =0;
		for (String s: line.split("")) {
			sum +=Integer.parseInt(s);
		}

		System.out.println(Integer.parseInt(line) % sum == 0 ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc int sum =0; sum 0 for (String s: line.split("")) {
			sum +=Integer.parseInt(s);
		} String s line.split("") line.split line "" {
			sum +=Integer.parseInt(s);
		} {
			sum +=Integer.parseInt(s);
		} sum +=Integer.parseInt(s) sum Integer.parseInt(s) Integer.parseInt Integer s System.out.println(Integer.parseInt(line) % sum == 0 ? "Yes" : "No") System.out.println System.out System System.out Integer.parseInt(line) % sum == 0 ? "Yes" : "No" Integer.parseInt(line) % sum == 0 Integer.parseInt(line) % sum Integer.parseInt(line) Integer.parseInt Integer line sum 0 "Yes" "No" String[] args args public class Main {
	public static final void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();

		int sum =0;
		for (String s: line.split("")) {
			sum +=Integer.parseInt(s);
		}

		System.out.println(Integer.parseInt(line) % sum == 0 ? "Yes" : "No");
	}
} public class Main {
	public static final void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();

		int sum =0;
		for (String s: line.split("")) {
			sum +=Integer.parseInt(s);
		}

		System.out.println(Integer.parseInt(line) % sum == 0 ? "Yes" : "No");
	}
} Main
import java.util.Scanner;

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

		int sum =0;
		for (String s: line.split("")) {
			sum +=Integer.parseInt(s);
		}

		System.out.println(Integer.parseInt(line) % sum == 0 ? "Yes" : "No");
	}
}
