import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc1 = new Scanner(System.in);

		String n = sc1.next();
		int intn = Integer.parseInt(n);
		int sn = 0;

		for (int i = 0 ; i < n.length() ; i++) {
			sn += Character.getNumericValue(n.charAt(i));
		}

		//System.out.println(sn);

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

		sc1.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc1 = new Scanner(System.in);

		String n = sc1.next();
		int intn = Integer.parseInt(n);
		int sn = 0;

		for (int i = 0 ; i < n.length() ; i++) {
			sn += Character.getNumericValue(n.charAt(i));
		}

		//System.out.println(sn);

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

		sc1.close();
	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc1 = new Scanner(System.in);

		String n = sc1.next();
		int intn = Integer.parseInt(n);
		int sn = 0;

		for (int i = 0 ; i < n.length() ; i++) {
			sn += Character.getNumericValue(n.charAt(i));
		}

		//System.out.println(sn);

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

		sc1.close();
	} main {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc1 = new Scanner(System.in);

		String n = sc1.next();
		int intn = Integer.parseInt(n);
		int sn = 0;

		for (int i = 0 ; i < n.length() ; i++) {
			sn += Character.getNumericValue(n.charAt(i));
		}

		//System.out.println(sn);

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

		sc1.close();
	} Scanner sc1 = new Scanner(System.in); sc1 new Scanner(System.in) String n = sc1.next(); n sc1.next() sc1.next sc1 int intn = Integer.parseInt(n); intn Integer.parseInt(n) Integer.parseInt Integer n int sn = 0; sn 0 for (int i = 0 ; i < n.length() ; i++) {
			sn += Character.getNumericValue(n.charAt(i));
		} int i = 0 ; int i = 0 ; i 0 i < n.length() i n.length() n.length n i++ i++ i {
			sn += Character.getNumericValue(n.charAt(i));
		} {
			sn += Character.getNumericValue(n.charAt(i));
		} sn += Character.getNumericValue(n.charAt(i)) sn Character.getNumericValue(n.charAt(i)) Character.getNumericValue Character n.charAt(i) n.charAt n i if ( intn % sn == 0) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		} intn % sn == 0 intn % sn intn sn 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" sc1.close() sc1.close sc1 String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc1 = new Scanner(System.in);

		String n = sc1.next();
		int intn = Integer.parseInt(n);
		int sn = 0;

		for (int i = 0 ; i < n.length() ; i++) {
			sn += Character.getNumericValue(n.charAt(i));
		}

		//System.out.println(sn);

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

		sc1.close();
	}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc1 = new Scanner(System.in);

		String n = sc1.next();
		int intn = Integer.parseInt(n);
		int sn = 0;

		for (int i = 0 ; i < n.length() ; i++) {
			sn += Character.getNumericValue(n.charAt(i));
		}

		//System.out.println(sn);

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

		sc1.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc1 = new Scanner(System.in);

		String n = sc1.next();
		int intn = Integer.parseInt(n);
		int sn = 0;

		for (int i = 0 ; i < n.length() ; i++) {
			sn += Character.getNumericValue(n.charAt(i));
		}

		//System.out.println(sn);

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

		sc1.close();
	}
}