import java.util.*;

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