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