let n = read_int () let () = print_endline (if n mod 6 = 0 then "Yes" else "No")