import java.io.*;

class Main {
    public static void main(String[] args) throws IOException{
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	int hours = 0;
	int minutes = 0;
	for (int i = 0; seconds >= (60*60); i++) {
	    hours++;
	    seconds -= (60*60);
	}
	for (int i = 0; seconds >= 60; i++) {
	    minutes++;
	    seconds -= 60;
	}
	System.out.println(hours+":"+minutes+":"+seconds);


    }
} import java.io.*; io.* java class Main {
    public static void main(String[] args) throws IOException{
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	int hours = 0;
	int minutes = 0;
	for (int i = 0; seconds >= (60*60); i++) {
	    hours++;
	    seconds -= (60*60);
	}
	for (int i = 0; seconds >= 60; i++) {
	    minutes++;
	    seconds -= 60;
	}
	System.out.println(hours+":"+minutes+":"+seconds);


    }
} Main public static void main(String[] args) throws IOException{
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	int hours = 0;
	int minutes = 0;
	for (int i = 0; seconds >= (60*60); i++) {
	    hours++;
	    seconds -= (60*60);
	}
	for (int i = 0; seconds >= 60; i++) {
	    minutes++;
	    seconds -= 60;
	}
	System.out.println(hours+":"+minutes+":"+seconds);


    } main {
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	int hours = 0;
	int minutes = 0;
	for (int i = 0; seconds >= (60*60); i++) {
	    hours++;
	    seconds -= (60*60);
	}
	for (int i = 0; seconds >= 60; i++) {
	    minutes++;
	    seconds -= 60;
	}
	System.out.println(hours+":"+minutes+":"+seconds);


    } BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int seconds = Integer.parseInt(str); seconds Integer.parseInt(str) Integer.parseInt Integer str int hours = 0; hours 0 int minutes = 0; minutes 0 for (int i = 0; seconds >= (60*60); i++) {
	    hours++;
	    seconds -= (60*60);
	} int i = 0; int i = 0; i 0 seconds >= (60*60) seconds (60*60) 60 60 i++ i++ i {
	    hours++;
	    seconds -= (60*60);
	} {
	    hours++;
	    seconds -= (60*60);
	} hours++ hours seconds -= (60*60) seconds (60*60) 60 60 for (int i = 0; seconds >= 60; i++) {
	    minutes++;
	    seconds -= 60;
	} int i = 0; int i = 0; i 0 seconds >= 60 seconds 60 i++ i++ i {
	    minutes++;
	    seconds -= 60;
	} {
	    minutes++;
	    seconds -= 60;
	} minutes++ minutes seconds -= 60 seconds 60 System.out.println(hours+":"+minutes+":"+seconds) System.out.println System.out System System.out hours+":"+minutes+":"+seconds ":" minutes hours+":"+minutes+":"+seconds hours ":" minutes ":" seconds String[] args args
import java.io.*;

class Main {
    public static void main(String[] args) throws IOException{
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	int hours = 0;
	int minutes = 0;
	for (int i = 0; seconds >= (60*60); i++) {
	    hours++;
	    seconds -= (60*60);
	}
	for (int i = 0; seconds >= 60; i++) {
	    minutes++;
	    seconds -= 60;
	}
	System.out.println(hours+":"+minutes+":"+seconds);


    }
}