import java.util.Scanner;

class Main{
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		
		int S = sc.nextInt();
		int h,m,s;
		int x,y;

		h=S/3600;
		x=S%3600;
		m=x/60;
		y=x%60;
		s=y;

		System.out.println(h + ":" + m + ":" + s);
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		
		int S = sc.nextInt();
		int h,m,s;
		int x,y;

		h=S/3600;
		x=S%3600;
		m=x/60;
		y=x%60;
		s=y;

		System.out.println(h + ":" + m + ":" + s);
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		
		int S = sc.nextInt();
		int h,m,s;
		int x,y;

		h=S/3600;
		x=S%3600;
		m=x/60;
		y=x%60;
		s=y;

		System.out.println(h + ":" + m + ":" + s);
	} main {

		Scanner sc = new Scanner(System.in);
		
		int S = sc.nextInt();
		int h,m,s;
		int x,y;

		h=S/3600;
		x=S%3600;
		m=x/60;
		y=x%60;
		s=y;

		System.out.println(h + ":" + m + ":" + s);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = sc.nextInt(); S sc.nextInt() sc.nextInt sc int h h m m s; s int x x y; y h=S/3600 h S/3600 S 3600 x=S%3600 x S%3600 S 3600 m=x/60 m x/60 x 60 y=x%60 y x%60 x 60 s=y s y 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.Scanner;

class Main{
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		
		int S = sc.nextInt();
		int h,m,s;
		int x,y;

		h=S/3600;
		x=S%3600;
		m=x/60;
		y=x%60;
		s=y;

		System.out.println(h + ":" + m + ":" + s);
	}
}
