import java.util.Scanner;

class Main {
 
	public static void main( String args[] ) {
		Scanner scan = new Scanner(System.in);
	    long x, jikan, hun, byou;
	    x = scan.nextLong();
	    jikan = x / 3600;
	    hun = (x - (jikan * 3600)) / 60;
	    byou = x - (jikan * 3600 + hun * 60);
	    
	    
	    System.out.println(jikan + ":" + hun + ":" + byou);
	    
	    //System.out.println(jikan);
	    //System.out.println(hun);
	    //System.out.println(byou);
    } 
 
} import java.util.Scanner; Scanner java.util class Main {
 
	public static void main( String args[] ) {
		Scanner scan = new Scanner(System.in);
	    long x, jikan, hun, byou;
	    x = scan.nextLong();
	    jikan = x / 3600;
	    hun = (x - (jikan * 3600)) / 60;
	    byou = x - (jikan * 3600 + hun * 60);
	    
	    
	    System.out.println(jikan + ":" + hun + ":" + byou);
	    
	    //System.out.println(jikan);
	    //System.out.println(hun);
	    //System.out.println(byou);
    } 
 
} Main public static void main( String args[] ) {
		Scanner scan = new Scanner(System.in);
	    long x, jikan, hun, byou;
	    x = scan.nextLong();
	    jikan = x / 3600;
	    hun = (x - (jikan * 3600)) / 60;
	    byou = x - (jikan * 3600 + hun * 60);
	    
	    
	    System.out.println(jikan + ":" + hun + ":" + byou);
	    
	    //System.out.println(jikan);
	    //System.out.println(hun);
	    //System.out.println(byou);
    } main {
		Scanner scan = new Scanner(System.in);
	    long x, jikan, hun, byou;
	    x = scan.nextLong();
	    jikan = x / 3600;
	    hun = (x - (jikan * 3600)) / 60;
	    byou = x - (jikan * 3600 + hun * 60);
	    
	    
	    System.out.println(jikan + ":" + hun + ":" + byou);
	    
	    //System.out.println(jikan);
	    //System.out.println(hun);
	    //System.out.println(byou);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long x x jikan jikan hun hun byou; byou x = scan.nextLong() x scan.nextLong() scan.nextLong scan jikan = x / 3600 jikan x / 3600 x 3600 hun = (x - (jikan * 3600)) / 60 hun (x - (jikan * 3600)) / 60 (x - (jikan * 3600)) x (jikan * 3600) jikan 3600 60 byou = x - (jikan * 3600 + hun * 60) byou x - (jikan * 3600 + hun * 60) x (jikan * 3600 + hun * 60) jikan * 3600 jikan 3600 hun * 60 hun 60 System.out.println(jikan + ":" + hun + ":" + byou) System.out.println System.out System System.out jikan + ":" + hun + ":" + byou ":" hun jikan + ":" + hun + ":" + byou jikan ":" hun ":" byou String args[] args
import java.util.Scanner;

class Main {
 
	public static void main( String args[] ) {
		Scanner scan = new Scanner(System.in);
	    long x, jikan, hun, byou;
	    x = scan.nextLong();
	    jikan = x / 3600;
	    hun = (x - (jikan * 3600)) / 60;
	    byou = x - (jikan * 3600 + hun * 60);
	    
	    
	    System.out.println(jikan + ":" + hun + ":" + byou);
	    
	    //System.out.println(jikan);
	    //System.out.println(hun);
	    //System.out.println(byou);
    } 
 
}