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