import java.util.Scanner;

//?§????????????????S???hms?????????????????????????????°??????
public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		area(a);


	}

	//????????¢?????¢???????±?????????????????????????
	private static void area(int a){

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


} import java.util.Scanner; Scanner java.util public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		area(a);


	}

	//????????¢?????¢???????±?????????????????????????
	private static void area(int a){

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


} Main public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		area(a);


	} main {

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		area(a);


	} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan area(a) area a String[] args args //????????¢?????¢???????±?????????????????????????
	private static void area(int a){

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

		int h, m, s;
		h=a/3600;
		m=(a%3600)/60;
		s=((a%3600)%60);
		System.out.println(h+":"+m+":"+s);
	} int h h m m s; s h=a/3600 h a/3600 a 3600 m=(a%3600)/60 m (a%3600)/60 (a%3600) a 3600 60 s=((a%3600)%60) s ((a%3600)%60) (a%3600) a 3600 60 System.out.println(h+":"+m+":"+s) System.out.println System.out System System.out h+":"+m+":"+s ":" m h+":"+m+":"+s h ":" m ":" s int a a public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		area(a);


	}

	//????????¢?????¢???????±?????????????????????????
	private static void area(int a){

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


} public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		area(a);


	}

	//????????¢?????¢???????±?????????????????????????
	private static void area(int a){

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


} Main
import java.util.Scanner;

//?§????????????????S???hms?????????????????????????????°??????
public class Main{


	public static void main(String[] args){

		//?¨??????\???
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		area(a);


	}

	//????????¢?????¢???????±?????????????????????????
	private static void area(int a){

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


}