import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		sc.close();
		int divisor = 0;
		for(int a = 0 ; a < N.length(); a++){
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		}
		System.out.println(Integer.parseInt(N)%divisor==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();
		sc.close();
		int divisor = 0;
		for(int a = 0 ; a < N.length(); a++){
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		}
		System.out.println(Integer.parseInt(N)%divisor==0?"Yes":"No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		sc.close();
		int divisor = 0;
		for(int a = 0 ; a < N.length(); a++){
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		}
		System.out.println(Integer.parseInt(N)%divisor==0?"Yes":"No");
	} main {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		sc.close();
		int divisor = 0;
		for(int a = 0 ; a < N.length(); a++){
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		}
		System.out.println(Integer.parseInt(N)%divisor==0?"Yes":"No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc sc.close() sc.close sc int divisor = 0; divisor 0 for(int a = 0 ; a < N.length(); a++){
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		} int a = 0 ; int a = 0 ; a 0 a < N.length() a N.length() N.length N a++ a++ a {
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		} {
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		} divisor = divisor + Integer.parseInt(N.substring(a, a+1)) divisor divisor + Integer.parseInt(N.substring(a, a+1)) divisor Integer.parseInt(N.substring(a, a+1)) Integer.parseInt Integer N.substring(a, a+1) N.substring N a a+1 a 1 System.out.println(Integer.parseInt(N)%divisor==0?"Yes":"No") System.out.println System.out System System.out Integer.parseInt(N)%divisor==0?"Yes":"No" Integer.parseInt(N)%divisor==0 Integer.parseInt(N)%divisor Integer.parseInt(N) Integer.parseInt Integer N divisor 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();
		sc.close();
		int divisor = 0;
		for(int a = 0 ; a < N.length(); a++){
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		}
		System.out.println(Integer.parseInt(N)%divisor==0?"Yes":"No");
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		sc.close();
		int divisor = 0;
		for(int a = 0 ; a < N.length(); a++){
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		}
		System.out.println(Integer.parseInt(N)%divisor==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();
		sc.close();
		int divisor = 0;
		for(int a = 0 ; a < N.length(); a++){
			divisor = divisor + Integer.parseInt(N.substring(a, a+1));
		}
		System.out.println(Integer.parseInt(N)%divisor==0?"Yes":"No");
	}
}