func sumDigits(_ num: Int) -> Int {
    var sum = 0
    var num = num
    while num > 0 {
        sum += num%10
        num /= 10
    }
    return sum
}

func checkHash(_ num: Int) -> Void {
    if num % sumDigits(num) == 0 {
        print("Yes")
    } else {
        print("No")
    }
}
let a = Int(readLine()!)!
checkHash(a)