import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner input = new Scanner(System.in);
        String line = input.nextLine();
        int N = Integer.parseInt(line);
        String[] array = line.split("");

        int Snum = 0;
        int arrayLength = array.length;

        for(int i = 0; i < arrayLength; i++){
        	Snum += Integer.parseInt(array[i]);
        }

        if(N % Snum == 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner input = new Scanner(System.in);
        String line = input.nextLine();
        int N = Integer.parseInt(line);
        String[] array = line.split("");

        int Snum = 0;
        int arrayLength = array.length;

        for(int i = 0; i < arrayLength; i++){
        	Snum += Integer.parseInt(array[i]);
        }

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

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner input = new Scanner(System.in);
        String line = input.nextLine();
        int N = Integer.parseInt(line);
        String[] array = line.split("");

        int Snum = 0;
        int arrayLength = array.length;

        for(int i = 0; i < arrayLength; i++){
        	Snum += Integer.parseInt(array[i]);
        }

        if(N % Snum == 0){
        	System.out.println("Yes");
        }else{
        	System.out.println("No");
        }
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner input = new Scanner(System.in);
        String line = input.nextLine();
        int N = Integer.parseInt(line);
        String[] array = line.split("");

        int Snum = 0;
        int arrayLength = array.length;

        for(int i = 0; i < arrayLength; i++){
        	Snum += Integer.parseInt(array[i]);
        }

        if(N % Snum == 0){
        	System.out.println("Yes");
        }else{
        	System.out.println("No");
        }
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) String line = input.nextLine(); line input.nextLine() input.nextLine input int N = Integer.parseInt(line); N Integer.parseInt(line) Integer.parseInt Integer line String[] array = line.split(""); array line.split("") line.split line "" int Snum = 0; Snum 0 int arrayLength = array.length; arrayLength array.length array array.length for(int i = 0; i < arrayLength; i++){
        	Snum += Integer.parseInt(array[i]);
        } int i = 0; int i = 0; i 0 i < arrayLength i arrayLength i++ i++ i {
        	Snum += Integer.parseInt(array[i]);
        } {
        	Snum += Integer.parseInt(array[i]);
        } Snum += Integer.parseInt(array[i]) Snum Integer.parseInt(array[i]) Integer.parseInt Integer array[i] array i if(N % Snum == 0){
        	System.out.println("Yes");
        }else{
        	System.out.println("No");
        } N % Snum == 0 N % Snum N Snum 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner input = new Scanner(System.in);
        String line = input.nextLine();
        int N = Integer.parseInt(line);
        String[] array = line.split("");

        int Snum = 0;
        int arrayLength = array.length;

        for(int i = 0; i < arrayLength; i++){
        	Snum += Integer.parseInt(array[i]);
        }

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

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner input = new Scanner(System.in);
        String line = input.nextLine();
        int N = Integer.parseInt(line);
        String[] array = line.split("");

        int Snum = 0;
        int arrayLength = array.length;

        for(int i = 0; i < arrayLength; i++){
        	Snum += Integer.parseInt(array[i]);
        }

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

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner input = new Scanner(System.in);
        String line = input.nextLine();
        int N = Integer.parseInt(line);
        String[] array = line.split("");

        int Snum = 0;
        int arrayLength = array.length;

        for(int i = 0; i < arrayLength; i++){
        	Snum += Integer.parseInt(array[i]);
        }

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

}
