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

/*
 * ???????????§??????????´? EightQueen.java
 *
 * Copyright(C) 2016 Nagasaki Team All Rights Reserved.
 */
/**
 * AIZU???Time???????????¨????§????h:m:s???????????????
 *@author Iwanaga
 * @version 1.00
 */

class Main{
	/*
	 *main????????????
	 */
	public static void main(String[] args)throws IOException{
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		String str = null;
		int sec = 0;
		int[] time=new int[3];

		str = br.readLine();
		sec = Integer.parseInt(str);
		
		for(int i=0; i<3; i++){
			time[i]=sec%60;
			sec=sec/60;
		}
		System.out.println(time[2]+":"+time[1]+":"+time[0]);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io class Main{
	/*
	 *main????????????
	 */
	public static void main(String[] args)throws IOException{
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		String str = null;
		int sec = 0;
		int[] time=new int[3];

		str = br.readLine();
		sec = Integer.parseInt(str);
		
		for(int i=0; i<3; i++){
			time[i]=sec%60;
			sec=sec/60;
		}
		System.out.println(time[2]+":"+time[1]+":"+time[0]);
	}
} Main /*
	 *main????????????
	 */
	public static void main(String[] args)throws IOException{
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		String str = null;
		int sec = 0;
		int[] time=new int[3];

		str = br.readLine();
		sec = Integer.parseInt(str);
		
		for(int i=0; i<3; i++){
			time[i]=sec%60;
			sec=sec/60;
		}
		System.out.println(time[2]+":"+time[1]+":"+time[0]);
	} main {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		String str = null;
		int sec = 0;
		int[] time=new int[3];

		str = br.readLine();
		sec = Integer.parseInt(str);
		
		for(int i=0; i<3; i++){
			time[i]=sec%60;
			sec=sec/60;
		}
		System.out.println(time[2]+":"+time[1]+":"+time[0]);
	} BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = null; str null int sec = 0; sec 0 int[] time=new int[3]; time new int[3] 3 str = br.readLine() str br.readLine() br.readLine br sec = Integer.parseInt(str) sec Integer.parseInt(str) Integer.parseInt Integer str for(int i=0; i<3; i++){
			time[i]=sec%60;
			sec=sec/60;
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			time[i]=sec%60;
			sec=sec/60;
		} {
			time[i]=sec%60;
			sec=sec/60;
		} time[i]=sec%60 time[i] time i sec%60 sec 60 sec=sec/60 sec sec/60 sec 60 System.out.println(time[2]+":"+time[1]+":"+time[0]) System.out.println System.out System System.out time[2]+":"+time[1]+":"+time[0] ":" time[1] time[2]+":"+time[1]+":"+time[0] time[2] time 2 ":" time[1] time 1 ":" time[0] time 0 String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

/*
 * ???????????§??????????´? EightQueen.java
 *
 * Copyright(C) 2016 Nagasaki Team All Rights Reserved.
 */
/**
 * AIZU???Time???????????¨????§????h:m:s???????????????
 *@author Iwanaga
 * @version 1.00
 */

class Main{
	/*
	 *main????????????
	 */
	public static void main(String[] args)throws IOException{
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		String str = null;
		int sec = 0;
		int[] time=new int[3];

		str = br.readLine();
		sec = Integer.parseInt(str);
		
		for(int i=0; i<3; i++){
			time[i]=sec%60;
			sec=sec/60;
		}
		System.out.println(time[2]+":"+time[1]+":"+time[0]);
	}
}