import java.util.Scanner;

class Main{
 public static void main(String[] args){
  int S;
  Scanner scn = new Scanner(System.in);
  S = scn.nextInt();
  int hour;
  int minute;
  int second;
  hour = S/3600;
  minute = (S-3600*hour)/60;
  second = S-3600*hour-minute*60;

  System.out.println(hour+":"+minute+":"+second);
}
} import java.util.Scanner; Scanner java.util class Main{
 public static void main(String[] args){
  int S;
  Scanner scn = new Scanner(System.in);
  S = scn.nextInt();
  int hour;
  int minute;
  int second;
  hour = S/3600;
  minute = (S-3600*hour)/60;
  second = S-3600*hour-minute*60;

  System.out.println(hour+":"+minute+":"+second);
}
} Main public static void main(String[] args){
  int S;
  Scanner scn = new Scanner(System.in);
  S = scn.nextInt();
  int hour;
  int minute;
  int second;
  hour = S/3600;
  minute = (S-3600*hour)/60;
  second = S-3600*hour-minute*60;

  System.out.println(hour+":"+minute+":"+second);
} main {
  int S;
  Scanner scn = new Scanner(System.in);
  S = scn.nextInt();
  int hour;
  int minute;
  int second;
  hour = S/3600;
  minute = (S-3600*hour)/60;
  second = S-3600*hour-minute*60;

  System.out.println(hour+":"+minute+":"+second);
} int S; S Scanner scn = new Scanner(System.in); scn new Scanner(System.in) S = scn.nextInt() S scn.nextInt() scn.nextInt scn int hour; hour int minute; minute int second; second hour = S/3600 hour S/3600 S 3600 minute = (S-3600*hour)/60 minute (S-3600*hour)/60 (S-3600*hour) S 3600*hour 3600 hour 60 second = S-3600*hour-minute*60 second S-3600*hour-minute*60 S-3600*hour-minute*60 S 3600*hour 3600 hour minute*60 minute 60 System.out.println(hour+":"+minute+":"+second) System.out.println System.out System System.out hour+":"+minute+":"+second ":" minute hour+":"+minute+":"+second hour ":" minute ":" second String[] args args
import java.util.Scanner;

class Main{
 public static void main(String[] args){
  int S;
  Scanner scn = new Scanner(System.in);
  S = scn.nextInt();
  int hour;
  int minute;
  int second;
  hour = S/3600;
  minute = (S-3600*hour)/60;
  second = S-3600*hour-minute*60;

  System.out.println(hour+":"+minute+":"+second);
}
}