
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        String str=String.valueOf(num);
        int NUM=0;

        for(int i=0;i<str.length();i++){
            NUM+=Character.getNumericValue(str.charAt(i));
        }
        
        if(num%NUM==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        String str=String.valueOf(num);
        int NUM=0;

        for(int i=0;i<str.length();i++){
            NUM+=Character.getNumericValue(str.charAt(i));
        }
        
        if(num%NUM==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        String str=String.valueOf(num);
        int NUM=0;

        for(int i=0;i<str.length();i++){
            NUM+=Character.getNumericValue(str.charAt(i));
        }
        
        if(num%NUM==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        String str=String.valueOf(num);
        int NUM=0;

        for(int i=0;i<str.length();i++){
            NUM+=Character.getNumericValue(str.charAt(i));
        }
        
        if(num%NUM==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int num=sc.nextInt(); num sc.nextInt() sc.nextInt sc String str=String.valueOf(num); str String.valueOf(num) String.valueOf String num int NUM=0; NUM 0 for(int i=0;i<str.length();i++){
            NUM+=Character.getNumericValue(str.charAt(i));
        } int i=0; int i=0; i 0 i<str.length() i str.length() str.length str i++ i++ i {
            NUM+=Character.getNumericValue(str.charAt(i));
        } {
            NUM+=Character.getNumericValue(str.charAt(i));
        } NUM+=Character.getNumericValue(str.charAt(i)) NUM Character.getNumericValue(str.charAt(i)) Character.getNumericValue Character str.charAt(i) str.charAt str i if(num%NUM==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } num%NUM==0 num%NUM num NUM 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.*;

class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int num=sc.nextInt();
        String str=String.valueOf(num);
        int NUM=0;

        for(int i=0;i<str.length();i++){
            NUM+=Character.getNumericValue(str.charAt(i));
        }
        
        if(num%NUM==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}