import java.util.*;
    public class Main{
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    int origin = Integer.parseInt(numM);
	    int startNum = 0;
		
	    for(int i =0;i<numM.length();i++){
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    }
	    if(origin%startNum==0){
		System.out.println("Yes");
	    }else{
		System.out.println("No");
	    }
	}
    } import java.util.*; util.* java public class Main{
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    int origin = Integer.parseInt(numM);
	    int startNum = 0;
		
	    for(int i =0;i<numM.length();i++){
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    }
	    if(origin%startNum==0){
		System.out.println("Yes");
	    }else{
		System.out.println("No");
	    }
	}
    } Main public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    int origin = Integer.parseInt(numM);
	    int startNum = 0;
		
	    for(int i =0;i<numM.length();i++){
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    }
	    if(origin%startNum==0){
		System.out.println("Yes");
	    }else{
		System.out.println("No");
	    }
	} main {
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    int origin = Integer.parseInt(numM);
	    int startNum = 0;
		
	    for(int i =0;i<numM.length();i++){
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    }
	    if(origin%startNum==0){
		System.out.println("Yes");
	    }else{
		System.out.println("No");
	    }
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String numM = scan.next(); numM scan.next() scan.next scan int origin = Integer.parseInt(numM); origin Integer.parseInt(numM) Integer.parseInt Integer numM int startNum = 0; startNum 0 for(int i =0;i<numM.length();i++){
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    } int i =0; int i =0; i 0 i<numM.length() i numM.length() numM.length numM i++ i++ i {
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    } {
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    } startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i))) startNum startNum+Integer.parseInt(String.valueOf(numM.charAt(i))) startNum Integer.parseInt(String.valueOf(numM.charAt(i))) Integer.parseInt Integer String.valueOf(numM.charAt(i)) String.valueOf String numM.charAt(i) numM.charAt numM i if(origin%startNum==0){
		System.out.println("Yes");
	    }else{
		System.out.println("No");
	    } origin%startNum==0 origin%startNum origin startNum 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 scan = new Scanner(System.in);
	    String numM = scan.next();
	    int origin = Integer.parseInt(numM);
	    int startNum = 0;
		
	    for(int i =0;i<numM.length();i++){
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    }
	    if(origin%startNum==0){
		System.out.println("Yes");
	    }else{
		System.out.println("No");
	    }
	}
    } public class Main{
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    int origin = Integer.parseInt(numM);
	    int startNum = 0;
		
	    for(int i =0;i<numM.length();i++){
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    }
	    if(origin%startNum==0){
		System.out.println("Yes");
	    }else{
		System.out.println("No");
	    }
	}
    } Main
import java.util.*;
    public class Main{
	public static void main(String[] args){
	    Scanner scan = new Scanner(System.in);
	    String numM = scan.next();
	    int origin = Integer.parseInt(numM);
	    int startNum = 0;
		
	    for(int i =0;i<numM.length();i++){
		startNum= startNum+Integer.parseInt(String.valueOf(numM.charAt(i)));
	
	    }
	    if(origin%startNum==0){
		System.out.println("Yes");
	    }else{
		System.out.println("No");
	    }
	}
    }
