import java.util.Scanner;

class Main{

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

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int ts = sc.nextInt();
		int h = ts/3600;
		int m = ts%3600/60;
		int s = ts%3600%60;
		System.out.println(h + ":" + m +":" + s);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int ts = sc.nextInt();
		int h = ts/3600;
		int m = ts%3600/60;
		int s = ts%3600%60;
		System.out.println(h + ":" + m +":" + s);
	} main {
		Scanner sc = new Scanner(System.in);
		int ts = sc.nextInt();
		int h = ts/3600;
		int m = ts%3600/60;
		int s = ts%3600%60;
		System.out.println(h + ":" + m +":" + s);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int ts = sc.nextInt(); ts sc.nextInt() sc.nextInt sc int h = ts/3600; h ts/3600 ts 3600 int m = ts%3600/60; m ts%3600/60 ts%3600 ts 3600 60 int s = ts%3600%60; s ts%3600%60 ts%3600%60 ts 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 String[] args args
import java.util.Scanner;

class Main{

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