import java.util.*;

class Main{
  public static void main(String args[]){
    Scanner inputs = new Scanner(System.in);
    int seconds = inputs.nextInt();
    int minutes = seconds / 60;
    seconds = seconds % 60;
    int hours = minutes / 60;
    minutes = minutes % 60;
    System.out.println(hours + ":" + minutes + ":" + seconds);
  }
} import java.util.*; util.* java class Main{
  public static void main(String args[]){
    Scanner inputs = new Scanner(System.in);
    int seconds = inputs.nextInt();
    int minutes = seconds / 60;
    seconds = seconds % 60;
    int hours = minutes / 60;
    minutes = minutes % 60;
    System.out.println(hours + ":" + minutes + ":" + seconds);
  }
} Main public static void main(String args[]){
    Scanner inputs = new Scanner(System.in);
    int seconds = inputs.nextInt();
    int minutes = seconds / 60;
    seconds = seconds % 60;
    int hours = minutes / 60;
    minutes = minutes % 60;
    System.out.println(hours + ":" + minutes + ":" + seconds);
  } main {
    Scanner inputs = new Scanner(System.in);
    int seconds = inputs.nextInt();
    int minutes = seconds / 60;
    seconds = seconds % 60;
    int hours = minutes / 60;
    minutes = minutes % 60;
    System.out.println(hours + ":" + minutes + ":" + seconds);
  } Scanner inputs = new Scanner(System.in); inputs new Scanner(System.in) int seconds = inputs.nextInt(); seconds inputs.nextInt() inputs.nextInt inputs int minutes = seconds / 60; minutes seconds / 60 seconds 60 seconds = seconds % 60 seconds seconds % 60 seconds 60 int hours = minutes / 60; hours minutes / 60 minutes 60 minutes = minutes % 60 minutes minutes % 60 minutes 60 System.out.println(hours + ":" + minutes + ":" + seconds) System.out.println System.out System System.out hours + ":" + minutes + ":" + seconds ":" minutes hours + ":" + minutes + ":" + seconds hours ":" minutes ":" seconds String args[] args
import java.util.*;

class Main{
  public static void main(String args[]){
    Scanner inputs = new Scanner(System.in);
    int seconds = inputs.nextInt();
    int minutes = seconds / 60;
    seconds = seconds % 60;
    int hours = minutes / 60;
    minutes = minutes % 60;
    System.out.println(hours + ":" + minutes + ":" + seconds);
  }
}