//2019/3/14
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int nn = n;

		int a = String.valueOf(n).length();

		int Sn = 0;

		while(a>0) {

			Sn += nn % 10;

			nn /= 10;

			a--;
		}

		Sn += nn;

		if(n%Sn==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 sc = new Scanner(System.in);

		int n = sc.nextInt();

		int nn = n;

		int a = String.valueOf(n).length();

		int Sn = 0;

		while(a>0) {

			Sn += nn % 10;

			nn /= 10;

			a--;
		}

		Sn += nn;

		if(n%Sn==0)System.out.println("Yes");

		else System.out.println("No");

	}

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

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int nn = n;

		int a = String.valueOf(n).length();

		int Sn = 0;

		while(a>0) {

			Sn += nn % 10;

			nn /= 10;

			a--;
		}

		Sn += nn;

		if(n%Sn==0)System.out.println("Yes");

		else System.out.println("No");

	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int nn = n;

		int a = String.valueOf(n).length();

		int Sn = 0;

		while(a>0) {

			Sn += nn % 10;

			nn /= 10;

			a--;
		}

		Sn += nn;

		if(n%Sn==0)System.out.println("Yes");

		else System.out.println("No");

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int nn = n; nn n int a = String.valueOf(n).length(); a String.valueOf(n).length() String.valueOf(n).length String.valueOf(n) String.valueOf String n int Sn = 0; Sn 0 while(a>0) {

			Sn += nn % 10;

			nn /= 10;

			a--;
		} a>0 a 0 {

			Sn += nn % 10;

			nn /= 10;

			a--;
		} Sn += nn % 10 Sn nn % 10 nn 10 nn /= 10 nn 10 a-- a Sn += nn Sn nn if(n%Sn==0)System.out.println("Yes");

		else System.out.println("No"); n%Sn==0 n%Sn n Sn 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" 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 sc = new Scanner(System.in);

		int n = sc.nextInt();

		int nn = n;

		int a = String.valueOf(n).length();

		int Sn = 0;

		while(a>0) {

			Sn += nn % 10;

			nn /= 10;

			a--;
		}

		Sn += nn;

		if(n%Sn==0)System.out.println("Yes");

		else System.out.println("No");

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int nn = n;

		int a = String.valueOf(n).length();

		int Sn = 0;

		while(a>0) {

			Sn += nn % 10;

			nn /= 10;

			a--;
		}

		Sn += nn;

		if(n%Sn==0)System.out.println("Yes");

		else System.out.println("No");

	}

} Main
//2019/3/14
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int nn = n;

		int a = String.valueOf(n).length();

		int Sn = 0;

		while(a>0) {

			Sn += nn % 10;

			nn /= 10;

			a--;
		}

		Sn += nn;

		if(n%Sn==0)System.out.println("Yes");

		else System.out.println("No");

	}

}
