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