import java.util.*;

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

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