import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        execute();
    }

    private static void execute() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String number = br.readLine();
        System.out.println(divisibleDigitSum(number));
    }

    private static String divisibleDigitSum(String number) {
        int digitSum = 0;
        for (char digit : number.toCharArray()) {
            digitSum += Integer.parseInt(String.valueOf(digit));
        }
        boolean divisible = Integer.parseInt(number) % digitSum == 0;
        return divisible ? "Yes" : "No";
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws IOException {
        execute();
    }

    private static void execute() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String number = br.readLine();
        System.out.println(divisibleDigitSum(number));
    }

    private static String divisibleDigitSum(String number) {
        int digitSum = 0;
        for (char digit : number.toCharArray()) {
            digitSum += Integer.parseInt(String.valueOf(digit));
        }
        boolean divisible = Integer.parseInt(number) % digitSum == 0;
        return divisible ? "Yes" : "No";
    }
} Main public static void main(String[] args) throws IOException {
        execute();
    } main {
        execute();
    } execute() execute String[] args args private static void execute() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String number = br.readLine();
        System.out.println(divisibleDigitSum(number));
    } execute {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String number = br.readLine();
        System.out.println(divisibleDigitSum(number));
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String number = br.readLine(); number br.readLine() br.readLine br System.out.println(divisibleDigitSum(number)) System.out.println System.out System System.out divisibleDigitSum(number) divisibleDigitSum number private static String divisibleDigitSum(String number) {
        int digitSum = 0;
        for (char digit : number.toCharArray()) {
            digitSum += Integer.parseInt(String.valueOf(digit));
        }
        boolean divisible = Integer.parseInt(number) % digitSum == 0;
        return divisible ? "Yes" : "No";
    } divisibleDigitSum {
        int digitSum = 0;
        for (char digit : number.toCharArray()) {
            digitSum += Integer.parseInt(String.valueOf(digit));
        }
        boolean divisible = Integer.parseInt(number) % digitSum == 0;
        return divisible ? "Yes" : "No";
    } int digitSum = 0; digitSum 0 for (char digit : number.toCharArray()) {
            digitSum += Integer.parseInt(String.valueOf(digit));
        } char digit number.toCharArray() number.toCharArray number {
            digitSum += Integer.parseInt(String.valueOf(digit));
        } {
            digitSum += Integer.parseInt(String.valueOf(digit));
        } digitSum += Integer.parseInt(String.valueOf(digit)) digitSum Integer.parseInt(String.valueOf(digit)) Integer.parseInt Integer String.valueOf(digit) String.valueOf String digit boolean divisible = Integer.parseInt(number) % digitSum == 0; divisible Integer.parseInt(number) % digitSum == 0 Integer.parseInt(number) % digitSum Integer.parseInt(number) Integer.parseInt Integer number digitSum 0 return divisible ? "Yes" : "No"; divisible ? "Yes" : "No" divisible "Yes" "No" String number number public class Main {
    public static void main(String[] args) throws IOException {
        execute();
    }

    private static void execute() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String number = br.readLine();
        System.out.println(divisibleDigitSum(number));
    }

    private static String divisibleDigitSum(String number) {
        int digitSum = 0;
        for (char digit : number.toCharArray()) {
            digitSum += Integer.parseInt(String.valueOf(digit));
        }
        boolean divisible = Integer.parseInt(number) % digitSum == 0;
        return divisible ? "Yes" : "No";
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        execute();
    }

    private static void execute() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String number = br.readLine();
        System.out.println(divisibleDigitSum(number));
    }

    private static String divisibleDigitSum(String number) {
        int digitSum = 0;
        for (char digit : number.toCharArray()) {
            digitSum += Integer.parseInt(String.valueOf(digit));
        }
        boolean divisible = Integer.parseInt(number) % digitSum == 0;
        return divisible ? "Yes" : "No";
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        execute();
    }

    private static void execute() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String number = br.readLine();
        System.out.println(divisibleDigitSum(number));
    }

    private static String divisibleDigitSum(String number) {
        int digitSum = 0;
        for (char digit : number.toCharArray()) {
            digitSum += Integer.parseInt(String.valueOf(digit));
        }
        boolean divisible = Integer.parseInt(number) % digitSum == 0;
        return divisible ? "Yes" : "No";
    }
}