
import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int moto=sc.nextInt();
		int wa=0;
		int tmp=moto;

		while(tmp>0) {
			wa+=tmp%10;
			tmp/=10;
		}

		if(moto%wa==0) {
			System.out.println("Yes");
		}

		else{
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int moto=sc.nextInt();
		int wa=0;
		int tmp=moto;

		while(tmp>0) {
			wa+=tmp%10;
			tmp/=10;
		}

		if(moto%wa==0) {
			System.out.println("Yes");
		}

		else{
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int moto=sc.nextInt();
		int wa=0;
		int tmp=moto;

		while(tmp>0) {
			wa+=tmp%10;
			tmp/=10;
		}

		if(moto%wa==0) {
			System.out.println("Yes");
		}

		else{
			System.out.println("No");
		}
	} main {
		Scanner sc=new Scanner(System.in);
		int moto=sc.nextInt();
		int wa=0;
		int tmp=moto;

		while(tmp>0) {
			wa+=tmp%10;
			tmp/=10;
		}

		if(moto%wa==0) {
			System.out.println("Yes");
		}

		else{
			System.out.println("No");
		}
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int moto=sc.nextInt(); moto sc.nextInt() sc.nextInt sc int wa=0; wa 0 int tmp=moto; tmp moto while(tmp>0) {
			wa+=tmp%10;
			tmp/=10;
		} tmp>0 tmp 0 {
			wa+=tmp%10;
			tmp/=10;
		} wa+=tmp%10 wa tmp%10 tmp 10 tmp/=10 tmp 10 if(moto%wa==0) {
			System.out.println("Yes");
		}

		else{
			System.out.println("No");
		} moto%wa==0 moto%wa moto wa 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

import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int moto=sc.nextInt();
		int wa=0;
		int tmp=moto;

		while(tmp>0) {
			wa+=tmp%10;
			tmp/=10;
		}

		if(moto%wa==0) {
			System.out.println("Yes");
		}

		else{
			System.out.println("No");
		}
	}
}