import java.util.Scanner;

class Main{
    static void printwatch(int s){
	int h=s/3600;
	int m=(s%3600)/60;
	int sa=s%60;

	System.out.println(h+":"+m+":"+sa);
    }
    
    public static void main(String args[]){
	Scanner scan=new Scanner(System.in);

	int s=scan.nextInt();
	printwatch(s);
    }
} import java.util.Scanner; Scanner java.util class Main{
    static void printwatch(int s){
	int h=s/3600;
	int m=(s%3600)/60;
	int sa=s%60;

	System.out.println(h+":"+m+":"+sa);
    }
    
    public static void main(String args[]){
	Scanner scan=new Scanner(System.in);

	int s=scan.nextInt();
	printwatch(s);
    }
} Main static void printwatch(int s){
	int h=s/3600;
	int m=(s%3600)/60;
	int sa=s%60;

	System.out.println(h+":"+m+":"+sa);
    } printwatch {
	int h=s/3600;
	int m=(s%3600)/60;
	int sa=s%60;

	System.out.println(h+":"+m+":"+sa);
    } int h=s/3600; h s/3600 s 3600 int m=(s%3600)/60; m (s%3600)/60 (s%3600) s 3600 60 int sa=s%60; sa s%60 s 60 System.out.println(h+":"+m+":"+sa) System.out.println System.out System System.out h+":"+m+":"+sa ":" m h+":"+m+":"+sa h ":" m ":" sa int s s public static void main(String args[]){
	Scanner scan=new Scanner(System.in);

	int s=scan.nextInt();
	printwatch(s);
    } main {
	Scanner scan=new Scanner(System.in);

	int s=scan.nextInt();
	printwatch(s);
    } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int s=scan.nextInt(); s scan.nextInt() scan.nextInt scan printwatch(s) printwatch s String args[] args
import java.util.Scanner;

class Main{
    static void printwatch(int s){
	int h=s/3600;
	int m=(s%3600)/60;
	int sa=s%60;

	System.out.println(h+":"+m+":"+sa);
    }
    
    public static void main(String args[]){
	Scanner scan=new Scanner(System.in);

	int s=scan.nextInt();
	printwatch(s);
    }
}