import java.util.*;

public class Main {
   public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int n=sc.nextInt();
       
       int s=n%60;
       int m=n/60;
       int h=m/60;
       m =m%60;
       System.out.printf("%d",h);
       System.out.printf(":%d",m);
       System.out.printf(":%d\n",s);
 }
   } import java.util.*; util.* java public class Main {
   public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int n=sc.nextInt();
       
       int s=n%60;
       int m=n/60;
       int h=m/60;
       m =m%60;
       System.out.printf("%d",h);
       System.out.printf(":%d",m);
       System.out.printf(":%d\n",s);
 }
   } Main public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int n=sc.nextInt();
       
       int s=n%60;
       int m=n/60;
       int h=m/60;
       m =m%60;
       System.out.printf("%d",h);
       System.out.printf(":%d",m);
       System.out.printf(":%d\n",s);
 } main {
       Scanner sc = new Scanner(System.in);
       int n=sc.nextInt();
       
       int s=n%60;
       int m=n/60;
       int h=m/60;
       m =m%60;
       System.out.printf("%d",h);
       System.out.printf(":%d",m);
       System.out.printf(":%d\n",s);
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int s=n%60; s n%60 n 60 int m=n/60; m n/60 n 60 int h=m/60; h m/60 m 60 m =m%60 m m%60 m 60 System.out.printf("%d",h) System.out.printf System.out System System.out "%d" h System.out.printf(":%d",m) System.out.printf System.out System System.out ":%d" m System.out.printf(":%d\n",s) System.out.printf System.out System System.out ":%d\n" s String[] args args public class Main {
   public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int n=sc.nextInt();
       
       int s=n%60;
       int m=n/60;
       int h=m/60;
       m =m%60;
       System.out.printf("%d",h);
       System.out.printf(":%d",m);
       System.out.printf(":%d\n",s);
 }
   } public class Main {
   public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int n=sc.nextInt();
       
       int s=n%60;
       int m=n/60;
       int h=m/60;
       m =m%60;
       System.out.printf("%d",h);
       System.out.printf(":%d",m);
       System.out.printf(":%d\n",s);
 }
   } Main
import java.util.*;

public class Main {
   public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int n=sc.nextInt();
       
       int s=n%60;
       int m=n/60;
       int h=m/60;
       m =m%60;
       System.out.printf("%d",h);
       System.out.printf(":%d",m);
       System.out.printf(":%d\n",s);
 }
   }