(* O(|n|) *)
let n = read_line () in
let ds = Array.init (String.length n) @@ fun i -> int_of_char n.[i] - 48 in
print_endline @@ if int_of_string n mod Array.fold_left (+) 0 ds = 0 then "Yes" else "No"