import java.util.Scanner;
public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int c=a;
	int b=0;
	for(int i=0;i<=10;i++) {
		b+=a%10;
		a/=10;
	}
	System.out.println(c%b==0?"Yes":"No");
}
} import java.util.Scanner; Scanner java.util public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int c=a;
	int b=0;
	for(int i=0;i<=10;i++) {
		b+=a%10;
		a/=10;
	}
	System.out.println(c%b==0?"Yes":"No");
}
} Main public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int c=a;
	int b=0;
	for(int i=0;i<=10;i++) {
		b+=a%10;
		a/=10;
	}
	System.out.println(c%b==0?"Yes":"No");
} main {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int c=a;
	int b=0;
	for(int i=0;i<=10;i++) {
		b+=a%10;
		a/=10;
	}
	System.out.println(c%b==0?"Yes":"No");
} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan int c=a; c a int b=0; b 0 for(int i=0;i<=10;i++) {
		b+=a%10;
		a/=10;
	} int i=0; int i=0; i 0 i<=10 i 10 i++ i++ i {
		b+=a%10;
		a/=10;
	} {
		b+=a%10;
		a/=10;
	} b+=a%10 b a%10 a 10 a/=10 a 10 System.out.println(c%b==0?"Yes":"No") System.out.println System.out System System.out c%b==0?"Yes":"No" c%b==0 c%b c b 0 "Yes" "No" String[]srgs srgs public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int c=a;
	int b=0;
	for(int i=0;i<=10;i++) {
		b+=a%10;
		a/=10;
	}
	System.out.println(c%b==0?"Yes":"No");
}
} public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int c=a;
	int b=0;
	for(int i=0;i<=10;i++) {
		b+=a%10;
		a/=10;
	}
	System.out.println(c%b==0?"Yes":"No");
}
} Main
import java.util.Scanner;
public class Main {
public static void main(String[]srgs) {
	Scanner scan=new Scanner(System.in);
	int a=scan.nextInt();
	int c=a;
	int b=0;
	for(int i=0;i<=10;i++) {
		b+=a%10;
		a/=10;
	}
	System.out.println(c%b==0?"Yes":"No");
}
}