import java.util.Scanner;

public class Main {

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

	private static void solve() {
		Scanner scn = new Scanner(System.in);
		int S = scn.nextInt();
		int h = S/3600;
		int m = (S%3600)/60;
		int s = (S%3600)%60;
		System.out.println(h+":"+m+":"+s);
		scn.close();
	}

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

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

	private static void solve() {
		Scanner scn = new Scanner(System.in);
		int S = scn.nextInt();
		int h = S/3600;
		int m = (S%3600)/60;
		int s = (S%3600)%60;
		System.out.println(h+":"+m+":"+s);
		scn.close();
	}

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

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

	private static void solve() {
		Scanner scn = new Scanner(System.in);
		int S = scn.nextInt();
		int h = S/3600;
		int m = (S%3600)/60;
		int s = (S%3600)%60;
		System.out.println(h+":"+m+":"+s);
		scn.close();
	}

} public class Main {

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

	private static void solve() {
		Scanner scn = new Scanner(System.in);
		int S = scn.nextInt();
		int h = S/3600;
		int m = (S%3600)/60;
		int s = (S%3600)%60;
		System.out.println(h+":"+m+":"+s);
		scn.close();
	}

} Main
import java.util.Scanner;

public class Main {

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

	private static void solve() {
		Scanner scn = new Scanner(System.in);
		int S = scn.nextInt();
		int h = S/3600;
		int m = (S%3600)/60;
		int s = (S%3600)%60;
		System.out.println(h+":"+m+":"+s);
		scn.close();
	}

}