

import java.util.Scanner;

public class Main {

        public static void main(String[] args){
            Scanner sr = new Scanner(System.in);
            String input = sr.nextLine();
            long inputNum = Long.valueOf(input);
            int sum = 0;
            for(int i=0 ; i <input.length(); i++){
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            }

            if(inputNum % sum == 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

    }
} import java.util.Scanner; Scanner java.util public class Main {

        public static void main(String[] args){
            Scanner sr = new Scanner(System.in);
            String input = sr.nextLine();
            long inputNum = Long.valueOf(input);
            int sum = 0;
            for(int i=0 ; i <input.length(); i++){
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            }

            if(inputNum % sum == 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

    }
} Main public static void main(String[] args){
            Scanner sr = new Scanner(System.in);
            String input = sr.nextLine();
            long inputNum = Long.valueOf(input);
            int sum = 0;
            for(int i=0 ; i <input.length(); i++){
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            }

            if(inputNum % sum == 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

    } main {
            Scanner sr = new Scanner(System.in);
            String input = sr.nextLine();
            long inputNum = Long.valueOf(input);
            int sum = 0;
            for(int i=0 ; i <input.length(); i++){
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            }

            if(inputNum % sum == 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

    } Scanner sr = new Scanner(System.in); sr new Scanner(System.in) String input = sr.nextLine(); input sr.nextLine() sr.nextLine sr long inputNum = Long.valueOf(input); inputNum Long.valueOf(input) Long.valueOf Long input int sum = 0; sum 0 for(int i=0 ; i <input.length(); i++){
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            } int i=0 ; int i=0 ; i 0 i <input.length() i input.length() input.length input i++ i++ i {
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            } {
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            } String num =  input.substring(i, i+1); num input.substring(i, i+1) input.substring input i i+1 i 1 Integer numToInt = Integer.valueOf(num); numToInt Integer.valueOf(num) Integer.valueOf Integer num sum += numToInt sum numToInt if(inputNum % sum == 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            } inputNum % sum == 0 inputNum % sum inputNum 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 public class Main {

        public static void main(String[] args){
            Scanner sr = new Scanner(System.in);
            String input = sr.nextLine();
            long inputNum = Long.valueOf(input);
            int sum = 0;
            for(int i=0 ; i <input.length(); i++){
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            }

            if(inputNum % sum == 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

    }
} public class Main {

        public static void main(String[] args){
            Scanner sr = new Scanner(System.in);
            String input = sr.nextLine();
            long inputNum = Long.valueOf(input);
            int sum = 0;
            for(int i=0 ; i <input.length(); i++){
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            }

            if(inputNum % sum == 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

    }
} Main


import java.util.Scanner;

public class Main {

        public static void main(String[] args){
            Scanner sr = new Scanner(System.in);
            String input = sr.nextLine();
            long inputNum = Long.valueOf(input);
            int sum = 0;
            for(int i=0 ; i <input.length(); i++){
               String num =  input.substring(i, i+1);
               Integer numToInt = Integer.valueOf(num);
               sum += numToInt;
            }

            if(inputNum % sum == 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

    }
}
