import java.util.Scanner;

public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int sec  = s.nextInt();
	    int m = 0;
	    int h = 0;
	    m= sec / 60;
	    sec = sec - m * 60;
	    h = m / 60;
	    m = m - h * 60;
	    System.out.println(h + ":" + m + ":" + sec);
	}
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int sec  = s.nextInt();
	    int m = 0;
	    int h = 0;
	    m= sec / 60;
	    sec = sec - m * 60;
	    h = m / 60;
	    m = m - h * 60;
	    System.out.println(h + ":" + m + ":" + sec);
	}
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} Main void run(){
		Scanner s = new Scanner(System.in);
		int sec  = s.nextInt();
	    int m = 0;
	    int h = 0;
	    m= sec / 60;
	    sec = sec - m * 60;
	    h = m / 60;
	    m = m - h * 60;
	    System.out.println(h + ":" + m + ":" + sec);
	} run {
		Scanner s = new Scanner(System.in);
		int sec  = s.nextInt();
	    int m = 0;
	    int h = 0;
	    m= sec / 60;
	    sec = sec - m * 60;
	    h = m / 60;
	    m = m - h * 60;
	    System.out.println(h + ":" + m + ":" + sec);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int sec  = s.nextInt(); sec s.nextInt() s.nextInt s int m = 0; m 0 int h = 0; h 0 m= sec / 60 m sec / 60 sec 60 sec = sec - m * 60 sec sec - m * 60 sec m * 60 m 60 h = m / 60 h m / 60 m 60 m = m - h * 60 m m - h * 60 m h * 60 h 60 System.out.println(h + ":" + m + ":" + sec) System.out.println System.out System System.out h + ":" + m + ":" + sec ":" m h + ":" + m + ":" + sec h ":" m ":" sec public static void main(String[] args) {
		
		new Main().run();
		
	} main {
		
		new Main().run();
		
	} new Main().run() new Main().run new Main() String[] args args public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int sec  = s.nextInt();
	    int m = 0;
	    int h = 0;
	    m= sec / 60;
	    sec = sec - m * 60;
	    h = m / 60;
	    m = m - h * 60;
	    System.out.println(h + ":" + m + ":" + sec);
	}
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} public class Main {
	void run(){
		Scanner s = new Scanner(System.in);
		int sec  = s.nextInt();
	    int m = 0;
	    int h = 0;
	    m= sec / 60;
	    sec = sec - m * 60;
	    h = m / 60;
	    m = m - h * 60;
	    System.out.println(h + ":" + m + ":" + sec);
	}
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} Main
import java.util.Scanner;

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