import java.util.Scanner;
class Main
{
static Scanner scan = new Scanner(System.in);
    public static void main(String[] args) {
        int num = scan.nextInt();
        int sum=0;
        int numCopy = num;

        while(num>0)
        {
            int n = num % 10;
            sum += n;
            num /= 10;
        }

        if(numCopy % sum == 0)
        {
            System.out.println("Yes");
        }else{
            
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util class Main
{
static Scanner scan = new Scanner(System.in);
    public static void main(String[] args) {
        int num = scan.nextInt();
        int sum=0;
        int numCopy = num;

        while(num>0)
        {
            int n = num % 10;
            sum += n;
            num /= 10;
        }

        if(numCopy % sum == 0)
        {
            System.out.println("Yes");
        }else{
            
            System.out.println("No");
        }
    }
} Main static Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args) {
        int num = scan.nextInt();
        int sum=0;
        int numCopy = num;

        while(num>0)
        {
            int n = num % 10;
            sum += n;
            num /= 10;
        }

        if(numCopy % sum == 0)
        {
            System.out.println("Yes");
        }else{
            
            System.out.println("No");
        }
    } main {
        int num = scan.nextInt();
        int sum=0;
        int numCopy = num;

        while(num>0)
        {
            int n = num % 10;
            sum += n;
            num /= 10;
        }

        if(numCopy % sum == 0)
        {
            System.out.println("Yes");
        }else{
            
            System.out.println("No");
        }
    } int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan int sum=0; sum 0 int numCopy = num; numCopy num while(num>0)
        {
            int n = num % 10;
            sum += n;
            num /= 10;
        } num>0 num 0 {
            int n = num % 10;
            sum += n;
            num /= 10;
        } int n = num % 10; n num % 10 num 10 sum += n sum n num /= 10 num 10 if(numCopy % sum == 0)
        {
            System.out.println("Yes");
        }else{
            
            System.out.println("No");
        } numCopy % sum == 0 numCopy % sum numCopy sum 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
{
static Scanner scan = new Scanner(System.in);
    public static void main(String[] args) {
        int num = scan.nextInt();
        int sum=0;
        int numCopy = num;

        while(num>0)
        {
            int n = num % 10;
            sum += n;
            num /= 10;
        }

        if(numCopy % sum == 0)
        {
            System.out.println("Yes");
        }else{
            
            System.out.println("No");
        }
    }
}