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