import java.io.*;
import java.util.*;
import java.math.BigInteger;
public class Main {

static long[] list=new long[87];

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

   String nyuA=sc.nextLine();
   
int N=Integer.parseInt(nyuA);

String[] data=nyuA.split("");

int count=0;
for(String temp:data)count+=Integer.parseInt(temp);

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

}

}
 import java.io.*; io.* java import java.util.*; util.* java import java.math.BigInteger; BigInteger java.math public class Main {

static long[] list=new long[87];

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

   String nyuA=sc.nextLine();
   
int N=Integer.parseInt(nyuA);

String[] data=nyuA.split("");

int count=0;
for(String temp:data)count+=Integer.parseInt(temp);

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

}

} Main static long[] list=new long[87]; list new long[87] 87 public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

   String nyuA=sc.nextLine();
   
int N=Integer.parseInt(nyuA);

String[] data=nyuA.split("");

int count=0;
for(String temp:data)count+=Integer.parseInt(temp);

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

} main {
		Scanner sc = new Scanner(System.in);

   String nyuA=sc.nextLine();
   
int N=Integer.parseInt(nyuA);

String[] data=nyuA.split("");

int count=0;
for(String temp:data)count+=Integer.parseInt(temp);

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

} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String nyuA=sc.nextLine(); nyuA sc.nextLine() sc.nextLine sc int N=Integer.parseInt(nyuA); N Integer.parseInt(nyuA) Integer.parseInt Integer nyuA String[] data=nyuA.split(""); data nyuA.split("") nyuA.split nyuA "" int count=0; count 0 for(String temp:data)count+=Integer.parseInt(temp); String temp data count+=Integer.parseInt(temp); count+=Integer.parseInt(temp) count Integer.parseInt(temp) Integer.parseInt Integer temp if(N%count==0)System.out.println("Yes");
else System.out.println("No"); N%count==0 N%count N count 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

static long[] list=new long[87];

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

   String nyuA=sc.nextLine();
   
int N=Integer.parseInt(nyuA);

String[] data=nyuA.split("");

int count=0;
for(String temp:data)count+=Integer.parseInt(temp);

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

}

} public class Main {

static long[] list=new long[87];

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

   String nyuA=sc.nextLine();
   
int N=Integer.parseInt(nyuA);

String[] data=nyuA.split("");

int count=0;
for(String temp:data)count+=Integer.parseInt(temp);

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

}

} Main
import java.io.*;
import java.util.*;
import java.math.BigInteger;
public class Main {

static long[] list=new long[87];

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

   String nyuA=sc.nextLine();
   
int N=Integer.parseInt(nyuA);

String[] data=nyuA.split("");

int count=0;
for(String temp:data)count+=Integer.parseInt(temp);

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

}

}

