import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        String[] splitNum = num.split("", 0);
        
        int S_N = Integer.parseInt(num);
        int N = 0;
        for(int i = 0; i < num.length(); i++){
            N += Integer.parseInt(splitNum[i]);
        }
        
        System.out.println(S_N % N == 0 ? "Yes" : "No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        String[] splitNum = num.split("", 0);
        
        int S_N = Integer.parseInt(num);
        int N = 0;
        for(int i = 0; i < num.length(); i++){
            N += Integer.parseInt(splitNum[i]);
        }
        
        System.out.println(S_N % N == 0 ? "Yes" : "No");
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        String[] splitNum = num.split("", 0);
        
        int S_N = Integer.parseInt(num);
        int N = 0;
        for(int i = 0; i < num.length(); i++){
            N += Integer.parseInt(splitNum[i]);
        }
        
        System.out.println(S_N % N == 0 ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        String[] splitNum = num.split("", 0);
        
        int S_N = Integer.parseInt(num);
        int N = 0;
        for(int i = 0; i < num.length(); i++){
            N += Integer.parseInt(splitNum[i]);
        }
        
        System.out.println(S_N % N == 0 ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String num = sc.next(); num sc.next() sc.next sc String[] splitNum = num.split("", 0); splitNum num.split("", 0) num.split num "" 0 int S_N = Integer.parseInt(num); S_N Integer.parseInt(num) Integer.parseInt Integer num int N = 0; N 0 for(int i = 0; i < num.length(); i++){
            N += Integer.parseInt(splitNum[i]);
        } int i = 0; int i = 0; i 0 i < num.length() i num.length() num.length num i++ i++ i {
            N += Integer.parseInt(splitNum[i]);
        } {
            N += Integer.parseInt(splitNum[i]);
        } N += Integer.parseInt(splitNum[i]) N Integer.parseInt(splitNum[i]) Integer.parseInt Integer splitNum[i] splitNum i System.out.println(S_N % N == 0 ? "Yes" : "No") System.out.println System.out System System.out S_N % N == 0 ? "Yes" : "No" S_N % N == 0 S_N % N S_N N 0 "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        String[] splitNum = num.split("", 0);
        
        int S_N = Integer.parseInt(num);
        int N = 0;
        for(int i = 0; i < num.length(); i++){
            N += Integer.parseInt(splitNum[i]);
        }
        
        System.out.println(S_N % N == 0 ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        String[] splitNum = num.split("", 0);
        
        int S_N = Integer.parseInt(num);
        int N = 0;
        for(int i = 0; i < num.length(); i++){
            N += Integer.parseInt(splitNum[i]);
        }
        
        System.out.println(S_N % N == 0 ? "Yes" : "No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String num = sc.next();
        String[] splitNum = num.split("", 0);
        
        int S_N = Integer.parseInt(num);
        int N = 0;
        for(int i = 0; i < num.length(); i++){
            N += Integer.parseInt(splitNum[i]);
        }
        
        System.out.println(S_N % N == 0 ? "Yes" : "No");
    }
}
