import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
 
 
class Main
{
    public static void main(String[] args)
    {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            count = count + Integer.parseInt(ar[i]);
        }
        
        if(Integer.parseInt(n) % count == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
        
        //System.out.println(ans);
        scanner.close();
    }
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util class Main
{
    public static void main(String[] args)
    {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            count = count + Integer.parseInt(ar[i]);
        }
        
        if(Integer.parseInt(n) % count == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
        
        //System.out.println(ans);
        scanner.close();
    }
} Main public static void main(String[] args)
    {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            count = count + Integer.parseInt(ar[i]);
        }
        
        if(Integer.parseInt(n) % count == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
        
        //System.out.println(ans);
        scanner.close();
    } main {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            count = count + Integer.parseInt(ar[i]);
        }
        
        if(Integer.parseInt(n) % count == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
        
        //System.out.println(ans);
        scanner.close();
    } int ans = 0; ans 0 int count = 0; count 0 int a; a Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String n = scanner.next(); n scanner.next() scanner.next scanner String[] ar = n.split(""); ar n.split("") n.split n "" a = n.length() a n.length() n.length n for(int i = 0; i < a;i++){
            count = count + Integer.parseInt(ar[i]);
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            count = count + Integer.parseInt(ar[i]);
        } {
            count = count + Integer.parseInt(ar[i]);
        } count = count + Integer.parseInt(ar[i]) count count + Integer.parseInt(ar[i]) count Integer.parseInt(ar[i]) Integer.parseInt Integer ar[i] ar i if(Integer.parseInt(n) % count == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } Integer.parseInt(n) % count == 0 Integer.parseInt(n) % count Integer.parseInt(n) Integer.parseInt Integer n count 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" scanner.close() scanner.close scanner String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
 
 
class Main
{
    public static void main(String[] args)
    {
        int ans = 0;
        int count = 0;
        int a;
        
        Scanner scanner = new Scanner(System.in);
        String n = scanner.next();
        //int m = scanner.nextInt();
        String[] ar = n.split("");
        a = n.length();
        for(int i = 0; i < a;i++){
            count = count + Integer.parseInt(ar[i]);
        }
        
        if(Integer.parseInt(n) % count == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
        
        //System.out.println(ans);
        scanner.close();
    }
}