import java.util.Scanner;

class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );

		int s = sc.nextInt ();

		int s1 = s % 60;
		int s2 = ( s / 60 ) % 60;
		int s3 = s / 60 / 60;
		
		System.out.println ( s3 + ":" + s2 + ":" + s1 );
	}
} import java.util.Scanner; Scanner java.util class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );

		int s = sc.nextInt ();

		int s1 = s % 60;
		int s2 = ( s / 60 ) % 60;
		int s3 = s / 60 / 60;
		
		System.out.println ( s3 + ":" + s2 + ":" + s1 );
	}
} Main public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );

		int s = sc.nextInt ();

		int s1 = s % 60;
		int s2 = ( s / 60 ) % 60;
		int s3 = s / 60 / 60;
		
		System.out.println ( s3 + ":" + s2 + ":" + s1 );
	} main {
		Scanner sc = new Scanner ( System.in );

		int s = sc.nextInt ();

		int s1 = s % 60;
		int s2 = ( s / 60 ) % 60;
		int s3 = s / 60 / 60;
		
		System.out.println ( s3 + ":" + s2 + ":" + s1 );
	} Scanner sc = new Scanner ( System.in ); sc new Scanner ( System.in ) int s = sc.nextInt (); s sc.nextInt () sc.nextInt sc int s1 = s % 60; s1 s % 60 s 60 int s2 = ( s / 60 ) % 60; s2 ( s / 60 ) % 60 ( s / 60 ) s 60 60 int s3 = s / 60 / 60; s3 s / 60 / 60 s / 60 / 60 s 60 60 System.out.println ( s3 + ":" + s2 + ":" + s1 ) System.out.println System.out System System.out s3 + ":" + s2 + ":" + s1 ":" s2 s3 + ":" + s2 + ":" + s1 s3 ":" s2 ":" s1 String[] args args
import java.util.Scanner;

class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );

		int s = sc.nextInt ();

		int s1 = s % 60;
		int s2 = ( s / 60 ) % 60;
		int s3 = s / 60 / 60;
		
		System.out.println ( s3 + ":" + s2 + ":" + s1 );
	}
}