import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        long number = Long.parseLong(str);
        int sum = 0;
        for (int i = 0; i < str.length(); i++) {
            sum += Character.getNumericValue(str.charAt(i));
        }
        System.out.println(number % sum == 0 ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        long number = Long.parseLong(str);
        int sum = 0;
        for (int i = 0; i < str.length(); i++) {
            sum += Character.getNumericValue(str.charAt(i));
        }
        System.out.println(number % sum == 0 ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        long number = Long.parseLong(str);
        int sum = 0;
        for (int i = 0; i < str.length(); i++) {
            sum += Character.getNumericValue(str.charAt(i));
        }
        System.out.println(number % sum == 0 ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        long number = Long.parseLong(str);
        int sum = 0;
        for (int i = 0; i < str.length(); i++) {
            sum += Character.getNumericValue(str.charAt(i));
        }
        System.out.println(number % sum == 0 ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc long number = Long.parseLong(str); number Long.parseLong(str) Long.parseLong Long str int sum = 0; sum 0 for (int i = 0; i < str.length(); i++) {
            sum += Character.getNumericValue(str.charAt(i));
        } int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
            sum += Character.getNumericValue(str.charAt(i));
        } {
            sum += Character.getNumericValue(str.charAt(i));
        } sum += Character.getNumericValue(str.charAt(i)) sum Character.getNumericValue(str.charAt(i)) Character.getNumericValue Character str.charAt(i) str.charAt str i System.out.println(number % sum == 0 ? "Yes" : "No") System.out.println System.out System System.out number % sum == 0 ? "Yes" : "No" number % sum == 0 number % sum number sum 0 "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        long number = Long.parseLong(str);
        int sum = 0;
        for (int i = 0; i < str.length(); i++) {
            sum += Character.getNumericValue(str.charAt(i));
        }
        System.out.println(number % sum == 0 ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        long number = Long.parseLong(str);
        int sum = 0;
        for (int i = 0; i < str.length(); i++) {
            sum += Character.getNumericValue(str.charAt(i));
        }
        System.out.println(number % sum == 0 ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        long number = Long.parseLong(str);
        int sum = 0;
        for (int i = 0; i < str.length(); i++) {
            sum += Character.getNumericValue(str.charAt(i));
        }
        System.out.println(number % sum == 0 ? "Yes" : "No");
    }
}