import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int sum = 0;
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		int i = 100000000;
		
		while(true) {
			if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			}
		}
		
		if(n % sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		sc.close();
	}

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

	public static void main(String[] args) {
		int sum = 0;
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		int i = 100000000;
		
		while(true) {
			if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			}
		}
		
		if(n % sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		sc.close();
	}

} Main public static void main(String[] args) {
		int sum = 0;
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		int i = 100000000;
		
		while(true) {
			if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			}
		}
		
		if(n % sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		sc.close();
	} main {
		int sum = 0;
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		int i = 100000000;
		
		while(true) {
			if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			}
		}
		
		if(n % sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		sc.close();
	} int sum = 0; sum 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = n; m n int i = 100000000; i 100000000 while(true) {
			if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			}
		} true {
			if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			}
		} if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			} i <= m i m {
				m = m - i;
				sum++;
			} m = m - i m m - i m i sum++ sum {
				if(m == 0)break;
				i = i / 10;
			} if(m == 0)break; m == 0 m 0 break; i = i / 10 i i / 10 i 10 if(n % sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} n % sum == 0 n % sum n sum 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" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		int sum = 0;
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		int i = 100000000;
		
		while(true) {
			if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			}
		}
		
		if(n % sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		int sum = 0;
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		int i = 100000000;
		
		while(true) {
			if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			}
		}
		
		if(n % sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int sum = 0;
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		int i = 100000000;
		
		while(true) {
			if(i <= m) {
				m = m - i;
				sum++;
			}else{
				if(m == 0)break;
				i = i / 10;
			}
		}
		
		if(n % sum == 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		sc.close();
	}

}
