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

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int second = Integer.parseInt(br.readLine());
		int hour = second/3600;
		second = second - hour * 3600;
		int minute = second/60;
		second = second - minute*60;
		System.out.println(hour+":"+minute+":"+second);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int second = Integer.parseInt(br.readLine());
		int hour = second/3600;
		second = second - hour * 3600;
		int minute = second/60;
		second = second - minute*60;
		System.out.println(hour+":"+minute+":"+second);
	}

} Main /**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int second = Integer.parseInt(br.readLine());
		int hour = second/3600;
		second = second - hour * 3600;
		int minute = second/60;
		second = second - minute*60;
		System.out.println(hour+":"+minute+":"+second);
	} main {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int second = Integer.parseInt(br.readLine());
		int hour = second/3600;
		second = second - hour * 3600;
		int minute = second/60;
		second = second - minute*60;
		System.out.println(hour+":"+minute+":"+second);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int second = Integer.parseInt(br.readLine()); second Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int hour = second/3600; hour second/3600 second 3600 second = second - hour * 3600 second second - hour * 3600 second hour * 3600 hour 3600 int minute = second/60; minute second/60 second 60 second = second - minute*60 second second - minute*60 second minute*60 minute 60 System.out.println(hour+":"+minute+":"+second) System.out.println System.out System System.out hour+":"+minute+":"+second ":" minute hour+":"+minute+":"+second hour ":" minute ":" second String[] args args public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int second = Integer.parseInt(br.readLine());
		int hour = second/3600;
		second = second - hour * 3600;
		int minute = second/60;
		second = second - minute*60;
		System.out.println(hour+":"+minute+":"+second);
	}

} public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int second = Integer.parseInt(br.readLine());
		int hour = second/3600;
		second = second - hour * 3600;
		int minute = second/60;
		second = second - minute*60;
		System.out.println(hour+":"+minute+":"+second);
	}

} Main

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

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws NumberFormatException 
	 */
	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int second = Integer.parseInt(br.readLine());
		int hour = second/3600;
		second = second - hour * 3600;
		int minute = second/60;
		second = second - minute*60;
		System.out.println(hour+":"+minute+":"+second);
	}

}