import java.util.*;

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