import java.util.Scanner;
public class  Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int inputTime = Integer.parseInt(input1);
	int numberCrack = 3600;
	int[] times = new int[3];
	for (int i = 0; i < 3; i++) {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	}
	System.out.println(times[0] + ":" + times[1] + ":" + times[2]);
    }
} import java.util.Scanner; Scanner java.util public class  Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int inputTime = Integer.parseInt(input1);
	int numberCrack = 3600;
	int[] times = new int[3];
	for (int i = 0; i < 3; i++) {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	}
	System.out.println(times[0] + ":" + times[1] + ":" + times[2]);
    }
} Main public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int inputTime = Integer.parseInt(input1);
	int numberCrack = 3600;
	int[] times = new int[3];
	for (int i = 0; i < 3; i++) {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	}
	System.out.println(times[0] + ":" + times[1] + ":" + times[2]);
    } main {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int inputTime = Integer.parseInt(input1);
	int numberCrack = 3600;
	int[] times = new int[3];
	for (int i = 0; i < 3; i++) {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	}
	System.out.println(times[0] + ":" + times[1] + ":" + times[2]);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String input1 = scan.next(); input1 scan.next() scan.next scan int inputTime = Integer.parseInt(input1); inputTime Integer.parseInt(input1) Integer.parseInt Integer input1 int numberCrack = 3600; numberCrack 3600 int[] times = new int[3]; times new int[3] 3 for (int i = 0; i < 3; i++) {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	} {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	} times[i] = inputTime / numberCrack times[i] times i inputTime / numberCrack inputTime numberCrack inputTime %= numberCrack inputTime numberCrack numberCrack /= 60 numberCrack 60 System.out.println(times[0] + ":" + times[1] + ":" + times[2]) System.out.println System.out System System.out times[0] + ":" + times[1] + ":" + times[2] ":" times[1] times[0] + ":" + times[1] + ":" + times[2] times[0] times 0 ":" times[1] times 1 ":" times[2] times 2 String[] args args public class  Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int inputTime = Integer.parseInt(input1);
	int numberCrack = 3600;
	int[] times = new int[3];
	for (int i = 0; i < 3; i++) {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	}
	System.out.println(times[0] + ":" + times[1] + ":" + times[2]);
    }
} public class  Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int inputTime = Integer.parseInt(input1);
	int numberCrack = 3600;
	int[] times = new int[3];
	for (int i = 0; i < 3; i++) {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	}
	System.out.println(times[0] + ":" + times[1] + ":" + times[2]);
    }
} Main
import java.util.Scanner;
public class  Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	String input1 = scan.next();
	int inputTime = Integer.parseInt(input1);
	int numberCrack = 3600;
	int[] times = new int[3];
	for (int i = 0; i < 3; i++) {
	    times[i] = inputTime / numberCrack;
	    inputTime %= numberCrack;
	    numberCrack /= 60;
	}
	System.out.println(times[0] + ":" + times[1] + ":" + times[2]);
    }
}