import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int num = Integer.parseInt(s);
		int sum = 0;
		for (char c : s.toCharArray()) {
			sum  += c - '0';
		}
		System.out.println(num % sum == 0 ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int num = Integer.parseInt(s);
		int sum = 0;
		for (char c : s.toCharArray()) {
			sum  += c - '0';
		}
		System.out.println(num % sum == 0 ? "Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int num = Integer.parseInt(s);
		int sum = 0;
		for (char c : s.toCharArray()) {
			sum  += c - '0';
		}
		System.out.println(num % sum == 0 ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int num = Integer.parseInt(s);
		int sum = 0;
		for (char c : s.toCharArray()) {
			sum  += c - '0';
		}
		System.out.println(num % sum == 0 ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc int num = Integer.parseInt(s); num Integer.parseInt(s) Integer.parseInt Integer s int sum = 0; sum 0 for (char c : s.toCharArray()) {
			sum  += c - '0';
		} char c s.toCharArray() s.toCharArray s {
			sum  += c - '0';
		} {
			sum  += c - '0';
		} sum  += c - '0' sum c - '0' c '0' System.out.println(num % sum == 0 ? "Yes" : "No") System.out.println System.out System System.out num % sum == 0 ? "Yes" : "No" num % sum == 0 num % sum num sum 0 "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int num = Integer.parseInt(s);
		int sum = 0;
		for (char c : s.toCharArray()) {
			sum  += c - '0';
		}
		System.out.println(num % sum == 0 ? "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int num = Integer.parseInt(s);
		int sum = 0;
		for (char c : s.toCharArray()) {
			sum  += c - '0';
		}
		System.out.println(num % sum == 0 ? "Yes" : "No");
	}
} Main
import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int num = Integer.parseInt(s);
		int sum = 0;
		for (char c : s.toCharArray()) {
			sum  += c - '0';
		}
		System.out.println(num % sum == 0 ? "Yes" : "No");
	}
}