import java.util.*;

class Main{

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

		int a = hoge.nextInt();

		int s = a % 60;
		int huga = (a - s)/60;
		int m = huga % 60;
		int h = huga / 60;

		System.out.println(h + ":" + m + ":" + s);
	}


} import java.util.*; util.* java class Main{

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

		int a = hoge.nextInt();

		int s = a % 60;
		int huga = (a - s)/60;
		int m = huga % 60;
		int h = huga / 60;

		System.out.println(h + ":" + m + ":" + s);
	}


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

		int a = hoge.nextInt();

		int s = a % 60;
		int huga = (a - s)/60;
		int m = huga % 60;
		int h = huga / 60;

		System.out.println(h + ":" + m + ":" + s);
	} main {
		Scanner hoge = new Scanner(System.in);

		int a = hoge.nextInt();

		int s = a % 60;
		int huga = (a - s)/60;
		int m = huga % 60;
		int h = huga / 60;

		System.out.println(h + ":" + m + ":" + s);
	} Scanner hoge = new Scanner(System.in); hoge new Scanner(System.in) int a = hoge.nextInt(); a hoge.nextInt() hoge.nextInt hoge int s = a % 60; s a % 60 a 60 int huga = (a - s)/60; huga (a - s)/60 (a - s) a s 60 int m = huga % 60; m huga % 60 huga 60 int h = huga / 60; h huga / 60 huga 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 String[] args args
import java.util.*;

class Main{

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

		int a = hoge.nextInt();

		int s = a % 60;
		int huga = (a - s)/60;
		int m = huga % 60;
		int h = huga / 60;

		System.out.println(h + ":" + m + ":" + s);
	}


}