import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String N = sc.next();

		int Sn = 0;

		for (int i = 0; i < N.length(); i++) {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		}
		System.out.println(Integer.parseInt(N) % Sn == 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 N = sc.next();

		int Sn = 0;

		for (int i = 0; i < N.length(); i++) {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		}
		System.out.println(Integer.parseInt(N) % Sn == 0 ? "Yes" : "No");
	}

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

		Scanner sc = new Scanner(System.in);

		String N = sc.next();

		int Sn = 0;

		for (int i = 0; i < N.length(); i++) {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		}
		System.out.println(Integer.parseInt(N) % Sn == 0 ? "Yes" : "No");
	} main {

		Scanner sc = new Scanner(System.in);

		String N = sc.next();

		int Sn = 0;

		for (int i = 0; i < N.length(); i++) {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		}
		System.out.println(Integer.parseInt(N) % Sn == 0 ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc int Sn = 0; Sn 0 for (int i = 0; i < N.length(); i++) {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		} int i = 0; int i = 0; i 0 i < N.length() i N.length() N.length N i++ i++ i {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		} {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		} Sn += Integer.parseInt(String.valueOf(N.charAt(i))) Sn Integer.parseInt(String.valueOf(N.charAt(i))) Integer.parseInt Integer String.valueOf(N.charAt(i)) String.valueOf String N.charAt(i) N.charAt N i System.out.println(Integer.parseInt(N) % Sn == 0 ? "Yes" : "No") System.out.println System.out System System.out Integer.parseInt(N) % Sn == 0 ? "Yes" : "No" Integer.parseInt(N) % Sn == 0 Integer.parseInt(N) % Sn Integer.parseInt(N) Integer.parseInt Integer N Sn 0 "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String N = sc.next();

		int Sn = 0;

		for (int i = 0; i < N.length(); i++) {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		}
		System.out.println(Integer.parseInt(N) % Sn == 0 ? "Yes" : "No");
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String N = sc.next();

		int Sn = 0;

		for (int i = 0; i < N.length(); i++) {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		}
		System.out.println(Integer.parseInt(N) % Sn == 0 ? "Yes" : "No");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String N = sc.next();

		int Sn = 0;

		for (int i = 0; i < N.length(); i++) {
			Sn += Integer.parseInt(String.valueOf(N.charAt(i)));
		}
		System.out.println(Integer.parseInt(N) % Sn == 0 ? "Yes" : "No");
	}

}
