

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String str = sc.next();

		int sn = 0;
		for(int i = 0; i < str.length(); i++){
			sn += str.charAt(i) - '0';
		}

		System.out.println(Integer.parseInt(str) % sn == 0 ? "Yes" : "No");
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String str = sc.next();

		int sn = 0;
		for(int i = 0; i < str.length(); i++){
			sn += str.charAt(i) - '0';
		}

		System.out.println(Integer.parseInt(str) % sn == 0 ? "Yes" : "No");
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String str = sc.next();

		int sn = 0;
		for(int i = 0; i < str.length(); i++){
			sn += str.charAt(i) - '0';
		}

		System.out.println(Integer.parseInt(str) % sn == 0 ? "Yes" : "No");
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String str = sc.next();

		int sn = 0;
		for(int i = 0; i < str.length(); i++){
			sn += str.charAt(i) - '0';
		}

		System.out.println(Integer.parseInt(str) % sn == 0 ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int sn = 0; sn 0 for(int i = 0; i < str.length(); i++){
			sn += str.charAt(i) - '0';
		} int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
			sn += str.charAt(i) - '0';
		} {
			sn += str.charAt(i) - '0';
		} sn += str.charAt(i) - '0' sn str.charAt(i) - '0' str.charAt(i) str.charAt str i '0' System.out.println(Integer.parseInt(str) % sn == 0 ? "Yes" : "No") System.out.println System.out System System.out Integer.parseInt(str) % sn == 0 ? "Yes" : "No" Integer.parseInt(str) % sn == 0 Integer.parseInt(str) % sn Integer.parseInt(str) Integer.parseInt Integer str sn 0 "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String str = sc.next();

		int sn = 0;
		for(int i = 0; i < str.length(); i++){
			sn += str.charAt(i) - '0';
		}

		System.out.println(Integer.parseInt(str) % sn == 0 ? "Yes" : "No");
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String str = sc.next();

		int sn = 0;
		for(int i = 0; i < str.length(); i++){
			sn += str.charAt(i) - '0';
		}

		System.out.println(Integer.parseInt(str) % sn == 0 ? "Yes" : "No");
	}

} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		String str = sc.next();

		int sn = 0;
		for(int i = 0; i < str.length(); i++){
			sn += str.charAt(i) - '0';
		}

		System.out.println(Integer.parseInt(str) % sn == 0 ? "Yes" : "No");
	}

}
