import java.awt.*;
import java.awt.geom.*;
import java.io.*;

import java.util.*;
class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S -= h * 3600;
		int m = S / 60;
		S -= m * 60;
		System.out.println(h + ":" + m + ":" + S);
	}
} import java.awt.*; awt.* java import java.awt.geom.*; geom.* java.awt import java.io.*; io.* java import java.util.*; util.* java class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S -= h * 3600;
		int m = S / 60;
		S -= m * 60;
		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 = S / 3600;
		S -= h * 3600;
		int m = S / 60;
		S -= m * 60;
		System.out.println(h + ":" + m + ":" + S);
	} main {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S -= h * 3600;
		int m = S / 60;
		S -= m * 60;
		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 = S / 3600; h S / 3600 S 3600 S -= h * 3600 S h * 3600 h 3600 int m = S / 60; m S / 60 S 60 S -= m * 60 S m * 60 m 60 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.awt.*;
import java.awt.geom.*;
import java.io.*;

import java.util.*;
class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S -= h * 3600;
		int m = S / 60;
		S -= m * 60;
		System.out.println(h + ":" + m + ":" + S);
	}
}