import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;
		int m = Integer.parseInt(n);



		for(int i=0;i<strArray.length;i++) {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		}

		if(m%pcount == 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 as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;
		int m = Integer.parseInt(n);



		for(int i=0;i<strArray.length;i++) {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		}

		if(m%pcount == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;
		int m = Integer.parseInt(n);



		for(int i=0;i<strArray.length;i++) {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		}

		if(m%pcount == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;
		int m = Integer.parseInt(n);



		for(int i=0;i<strArray.length;i++) {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		}

		if(m%pcount == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} Scanner as = new Scanner(System.in); as new Scanner(System.in) String n = as.next(); n as.next() as.next as String[] strArray = n.split(""); strArray n.split("") n.split n "" int pcount = 0; pcount 0 int m = Integer.parseInt(n); m Integer.parseInt(n) Integer.parseInt Integer n for(int i=0;i<strArray.length;i++) {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		} int i=0; int i=0; i 0 i<strArray.length i strArray.length strArray strArray.length i++ i++ i {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		} {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		} int tmp = Integer.parseInt(strArray[i]); tmp Integer.parseInt(strArray[i]) Integer.parseInt Integer strArray[i] strArray i pcount += tmp pcount tmp if(m%pcount == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} m%pcount == 0 m%pcount m pcount 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 as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;
		int m = Integer.parseInt(n);



		for(int i=0;i<strArray.length;i++) {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		}

		if(m%pcount == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;
		int m = Integer.parseInt(n);



		for(int i=0;i<strArray.length;i++) {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		}

		if(m%pcount == 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 as = new Scanner(System.in);
		String n = as.next();

		String[] strArray = n.split("");

		int pcount = 0;
		int m = Integer.parseInt(n);



		for(int i=0;i<strArray.length;i++) {
			int tmp = Integer.parseInt(strArray[i]);

			pcount += tmp;
		}

		if(m%pcount == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
}