import java.util.Scanner;

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

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