import java.util.*;

public class Main{

	public static void main(String[] args) throws 

java.io.IOException {
		int x,h,m,s;
		Scanner in = new Scanner(System.in);
		x = in.nextInt();
		h = x / 3600;
		x = x % 3600;
		m = x / 60;
		s = x % 60;
		System.out.println(h + ":" + m + ":" + s);
	}
} import java.util.*; util.* java public class Main{

	public static void main(String[] args) throws 

java.io.IOException {
		int x,h,m,s;
		Scanner in = new Scanner(System.in);
		x = in.nextInt();
		h = x / 3600;
		x = x % 3600;
		m = x / 60;
		s = x % 60;
		System.out.println(h + ":" + m + ":" + s);
	}
} Main public static void main(String[] args) throws 

java.io.IOException {
		int x,h,m,s;
		Scanner in = new Scanner(System.in);
		x = in.nextInt();
		h = x / 3600;
		x = x % 3600;
		m = x / 60;
		s = x % 60;
		System.out.println(h + ":" + m + ":" + s);
	} main {
		int x,h,m,s;
		Scanner in = new Scanner(System.in);
		x = in.nextInt();
		h = x / 3600;
		x = x % 3600;
		m = x / 60;
		s = x % 60;
		System.out.println(h + ":" + m + ":" + s);
	} int x x h h m m s; s Scanner in = new Scanner(System.in); in new Scanner(System.in) x = in.nextInt() x in.nextInt() in.nextInt in h = x / 3600 h x / 3600 x 3600 x = x % 3600 x x % 3600 x 3600 m = x / 60 m x / 60 x 60 s = x % 60 s x % 60 x 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 public class Main{

	public static void main(String[] args) throws 

java.io.IOException {
		int x,h,m,s;
		Scanner in = new Scanner(System.in);
		x = in.nextInt();
		h = x / 3600;
		x = x % 3600;
		m = x / 60;
		s = x % 60;
		System.out.println(h + ":" + m + ":" + s);
	}
} public class Main{

	public static void main(String[] args) throws 

java.io.IOException {
		int x,h,m,s;
		Scanner in = new Scanner(System.in);
		x = in.nextInt();
		h = x / 3600;
		x = x % 3600;
		m = x / 60;
		s = x % 60;
		System.out.println(h + ":" + m + ":" + s);
	}
} Main
import java.util.*;

public class Main{

	public static void main(String[] args) throws 

java.io.IOException {
		int x,h,m,s;
		Scanner in = new Scanner(System.in);
		x = in.nextInt();
		h = x / 3600;
		x = x % 3600;
		m = x / 60;
		s = x % 60;
		System.out.println(h + ":" + m + ":" + s);
	}
}