import java.util.Scanner;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int suu = Integer.parseInt(str);
        String[] num = str.split("");
        int sum =0;
        for(int i=0;i<num.length;i++){
            sum=sum+Integer.parseInt(num[i]);
        }
        if(suu%sum==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int suu = Integer.parseInt(str);
        String[] num = str.split("");
        int sum =0;
        for(int i=0;i<num.length;i++){
            sum=sum+Integer.parseInt(num[i]);
        }
        if(suu%sum==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int suu = Integer.parseInt(str);
        String[] num = str.split("");
        int sum =0;
        for(int i=0;i<num.length;i++){
            sum=sum+Integer.parseInt(num[i]);
        }
        if(suu%sum==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int suu = Integer.parseInt(str);
        String[] num = str.split("");
        int sum =0;
        for(int i=0;i<num.length;i++){
            sum=sum+Integer.parseInt(num[i]);
        }
        if(suu%sum==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int suu = Integer.parseInt(str); suu Integer.parseInt(str) Integer.parseInt Integer str String[] num = str.split(""); num str.split("") str.split str "" int sum =0; sum 0 for(int i=0;i<num.length;i++){
            sum=sum+Integer.parseInt(num[i]);
        } int i=0; int i=0; i 0 i<num.length i num.length num num.length i++ i++ i {
            sum=sum+Integer.parseInt(num[i]);
        } {
            sum=sum+Integer.parseInt(num[i]);
        } sum=sum+Integer.parseInt(num[i]) sum sum+Integer.parseInt(num[i]) sum Integer.parseInt(num[i]) Integer.parseInt Integer num[i] num i if(suu%sum==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } suu%sum==0 suu%sum suu 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{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int suu = Integer.parseInt(str);
        String[] num = str.split("");
        int sum =0;
        for(int i=0;i<num.length;i++){
            sum=sum+Integer.parseInt(num[i]);
        }
        if(suu%sum==0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}