import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N=Integer.parseInt(sc.next());
int S=0,temp=N;
int a=String.valueOf(N).length();
for(int i=0;i<a;i++){
S+=temp%10;
temp/=10;
}
if(N%S==0){System.out.println("Yes");}else{System.out.println("No");}
}
} import java.util.*; util.* java public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N=Integer.parseInt(sc.next());
int S=0,temp=N;
int a=String.valueOf(N).length();
for(int i=0;i<a;i++){
S+=temp%10;
temp/=10;
}
if(N%S==0){System.out.println("Yes");}else{System.out.println("No");}
}
} Main public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N=Integer.parseInt(sc.next());
int S=0,temp=N;
int a=String.valueOf(N).length();
for(int i=0;i<a;i++){
S+=temp%10;
temp/=10;
}
if(N%S==0){System.out.println("Yes");}else{System.out.println("No");}
} main {
Scanner sc = new Scanner(System.in);
int N=Integer.parseInt(sc.next());
int S=0,temp=N;
int a=String.valueOf(N).length();
for(int i=0;i<a;i++){
S+=temp%10;
temp/=10;
}
if(N%S==0){System.out.println("Yes");}else{System.out.println("No");}
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N=Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int S=0 S 0 temp=N; temp N int a=String.valueOf(N).length(); a String.valueOf(N).length() String.valueOf(N).length String.valueOf(N) String.valueOf String N for(int i=0;i<a;i++){
S+=temp%10;
temp/=10;
} int i=0; int i=0; i 0 i<a i a i++ i++ i {
S+=temp%10;
temp/=10;
} {
S+=temp%10;
temp/=10;
} S+=temp%10 S temp%10 temp 10 temp/=10 temp 10 if(N%S==0){System.out.println("Yes");}else{System.out.println("No");} N%S==0 N%S N S 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 public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N=Integer.parseInt(sc.next());
int S=0,temp=N;
int a=String.valueOf(N).length();
for(int i=0;i<a;i++){
S+=temp%10;
temp/=10;
}
if(N%S==0){System.out.println("Yes");}else{System.out.println("No");}
}
} public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N=Integer.parseInt(sc.next());
int S=0,temp=N;
int a=String.valueOf(N).length();
for(int i=0;i<a;i++){
S+=temp%10;
temp/=10;
}
if(N%S==0){System.out.println("Yes");}else{System.out.println("No");}
}
} Main
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N=Integer.parseInt(sc.next());
int S=0,temp=N;
int a=String.valueOf(N).length();
for(int i=0;i<a;i++){
S+=temp%10;
temp/=10;
}
if(N%S==0){System.out.println("Yes");}else{System.out.println("No");}
}
}