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