import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		long hour,min,sec;
		sec = Long.parseLong(br.readLine());
		sec -= (hour = sec / 60 /60) * 60 * 60;
		sec -= (min = sec / 60) * 60;
		System.out.printf("%d:%d:%d%n", hour, min, sec);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		long hour,min,sec;
		sec = Long.parseLong(br.readLine());
		sec -= (hour = sec / 60 /60) * 60 * 60;
		sec -= (min = sec / 60) * 60;
		System.out.printf("%d:%d:%d%n", hour, min, sec);
	}
} Main public static void main(String[] args) throws NumberFormatException, IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		long hour,min,sec;
		sec = Long.parseLong(br.readLine());
		sec -= (hour = sec / 60 /60) * 60 * 60;
		sec -= (min = sec / 60) * 60;
		System.out.printf("%d:%d:%d%n", hour, min, sec);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		long hour,min,sec;
		sec = Long.parseLong(br.readLine());
		sec -= (hour = sec / 60 /60) * 60 * 60;
		sec -= (min = sec / 60) * 60;
		System.out.printf("%d:%d:%d%n", hour, min, sec);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) long hour hour min min sec; sec sec = Long.parseLong(br.readLine()) sec Long.parseLong(br.readLine()) Long.parseLong Long br.readLine() br.readLine br sec -= (hour = sec / 60 /60) * 60 * 60 sec (hour = sec / 60 /60) * 60 * 60 (hour = sec / 60 /60) * 60 * 60 (hour = sec / 60 /60) hour sec / 60 /60 sec / 60 /60 sec 60 60 60 60 sec -= (min = sec / 60) * 60 sec (min = sec / 60) * 60 (min = sec / 60) min sec / 60 sec 60 60 System.out.printf("%d:%d:%d%n", hour, min, sec) System.out.printf System.out System System.out "%d:%d:%d%n" hour min sec String[] args args public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		long hour,min,sec;
		sec = Long.parseLong(br.readLine());
		sec -= (hour = sec / 60 /60) * 60 * 60;
		sec -= (min = sec / 60) * 60;
		System.out.printf("%d:%d:%d%n", hour, min, sec);
	}
} public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		long hour,min,sec;
		sec = Long.parseLong(br.readLine());
		sec -= (hour = sec / 60 /60) * 60 * 60;
		sec -= (min = sec / 60) * 60;
		System.out.printf("%d:%d:%d%n", hour, min, sec);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		long hour,min,sec;
		sec = Long.parseLong(br.readLine());
		sec -= (hour = sec / 60 /60) * 60 * 60;
		sec -= (min = sec / 60) * 60;
		System.out.printf("%d:%d:%d%n", hour, min, sec);
	}
}