import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner a=new Scanner(System.in);
		int b=a.nextInt();
		int c=b/3600;
		int d=(b%3600)/60;
		int e=(b-(c*3600)-(d*60));
		
		System.out.println(c+":"+d+":"+e);	
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner a=new Scanner(System.in);
		int b=a.nextInt();
		int c=b/3600;
		int d=(b%3600)/60;
		int e=(b-(c*3600)-(d*60));
		
		System.out.println(c+":"+d+":"+e);	
	}

} Main public static void main(String[] args) {
		Scanner a=new Scanner(System.in);
		int b=a.nextInt();
		int c=b/3600;
		int d=(b%3600)/60;
		int e=(b-(c*3600)-(d*60));
		
		System.out.println(c+":"+d+":"+e);	
	} main {
		Scanner a=new Scanner(System.in);
		int b=a.nextInt();
		int c=b/3600;
		int d=(b%3600)/60;
		int e=(b-(c*3600)-(d*60));
		
		System.out.println(c+":"+d+":"+e);	
	} Scanner a=new Scanner(System.in); a new Scanner(System.in) int b=a.nextInt(); b a.nextInt() a.nextInt a int c=b/3600; c b/3600 b 3600 int d=(b%3600)/60; d (b%3600)/60 (b%3600) b 3600 60 int e=(b-(c*3600)-(d*60)); e (b-(c*3600)-(d*60)) b-(c*3600)-(d*60) b (c*3600) c 3600 (d*60) d 60 System.out.println(c+":"+d+":"+e) System.out.println System.out System System.out c+":"+d+":"+e ":" d c+":"+d+":"+e c ":" d ":" e String[] args args public class Main {

	public static void main(String[] args) {
		Scanner a=new Scanner(System.in);
		int b=a.nextInt();
		int c=b/3600;
		int d=(b%3600)/60;
		int e=(b-(c*3600)-(d*60));
		
		System.out.println(c+":"+d+":"+e);	
	}

} public class Main {

	public static void main(String[] args) {
		Scanner a=new Scanner(System.in);
		int b=a.nextInt();
		int c=b/3600;
		int d=(b%3600)/60;
		int e=(b-(c*3600)-(d*60));
		
		System.out.println(c+":"+d+":"+e);	
	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner a=new Scanner(System.in);
		int b=a.nextInt();
		int c=b/3600;
		int d=(b%3600)/60;
		int e=(b-(c*3600)-(d*60));
		
		System.out.println(c+":"+d+":"+e);	
	}

}