let watch s =
  let h = s/(60*60) in
  let m = (s mod (60*60))/60 in
  let s = ((s mod (60*60)) mod 60) in
  Printf.printf "%d:%d:%d\n" h m s;;

let f s = Scanf.sscanf s "%d" watch ;;

f (read_line()) ;;

