import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        String strN = sc.next();
        int N = Integer.parseInt(strN);
        System.out.println( N % S(strN) == 0 ? "Yes" : "No" );
        
    }
    
    static int S(String n){
        int ret = 0;
        for(int i = 0; i < n.length(); i++){
            ret += n.charAt(i) - '0';
        }

        int N = Integer.parseInt(n);
        
        return ret;
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        String strN = sc.next();
        int N = Integer.parseInt(strN);
        System.out.println( N % S(strN) == 0 ? "Yes" : "No" );
        
    }
    
    static int S(String n){
        int ret = 0;
        for(int i = 0; i < n.length(); i++){
            ret += n.charAt(i) - '0';
        }

        int N = Integer.parseInt(n);
        
        return ret;
    }
} Main public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        String strN = sc.next();
        int N = Integer.parseInt(strN);
        System.out.println( N % S(strN) == 0 ? "Yes" : "No" );
        
    } main {

        Scanner sc = new Scanner(System.in);
        
        String strN = sc.next();
        int N = Integer.parseInt(strN);
        System.out.println( N % S(strN) == 0 ? "Yes" : "No" );
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String strN = sc.next(); strN sc.next() sc.next sc int N = Integer.parseInt(strN); N Integer.parseInt(strN) Integer.parseInt Integer strN System.out.println( N % S(strN) == 0 ? "Yes" : "No" ) System.out.println System.out System System.out N % S(strN) == 0 ? "Yes" : "No" N % S(strN) == 0 N % S(strN) N S(strN) S strN 0 "Yes" "No" String[] args args static int S(String n){
        int ret = 0;
        for(int i = 0; i < n.length(); i++){
            ret += n.charAt(i) - '0';
        }

        int N = Integer.parseInt(n);
        
        return ret;
    } S {
        int ret = 0;
        for(int i = 0; i < n.length(); i++){
            ret += n.charAt(i) - '0';
        }

        int N = Integer.parseInt(n);
        
        return ret;
    } int ret = 0; ret 0 for(int i = 0; i < n.length(); i++){
            ret += n.charAt(i) - '0';
        } int i = 0; int i = 0; i 0 i < n.length() i n.length() n.length n i++ i++ i {
            ret += n.charAt(i) - '0';
        } {
            ret += n.charAt(i) - '0';
        } ret += n.charAt(i) - '0' ret n.charAt(i) - '0' n.charAt(i) n.charAt n i '0' int N = Integer.parseInt(n); N Integer.parseInt(n) Integer.parseInt Integer n return ret; ret String n n public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        String strN = sc.next();
        int N = Integer.parseInt(strN);
        System.out.println( N % S(strN) == 0 ? "Yes" : "No" );
        
    }
    
    static int S(String n){
        int ret = 0;
        for(int i = 0; i < n.length(); i++){
            ret += n.charAt(i) - '0';
        }

        int N = Integer.parseInt(n);
        
        return ret;
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        String strN = sc.next();
        int N = Integer.parseInt(strN);
        System.out.println( N % S(strN) == 0 ? "Yes" : "No" );
        
    }
    
    static int S(String n){
        int ret = 0;
        for(int i = 0; i < n.length(); i++){
            ret += n.charAt(i) - '0';
        }

        int N = Integer.parseInt(n);
        
        return ret;
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        String strN = sc.next();
        int N = Integer.parseInt(strN);
        System.out.println( N % S(strN) == 0 ? "Yes" : "No" );
        
    }
    
    static int S(String n){
        int ret = 0;
        for(int i = 0; i < n.length(); i++){
            ret += n.charAt(i) - '0';
        }

        int N = Integer.parseInt(n);
        
        return ret;
    }
}
