import java.util.Scanner;

public class Main {

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intInput = scan.nextInt();
		int intSec = intInput % 60;
		int intMin = (intInput - intSec)/60;
		int intHour = intMin / 60;
		intMin = intMin - intHour * 60;
		System.out.println(intHour + ":" + intMin + ":" + intSec);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intInput = scan.nextInt();
		int intSec = intInput % 60;
		int intMin = (intInput - intSec)/60;
		int intHour = intMin / 60;
		intMin = intMin - intHour * 60;
		System.out.println(intHour + ":" + intMin + ":" + intSec);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intInput = scan.nextInt();
		int intSec = intInput % 60;
		int intMin = (intInput - intSec)/60;
		int intHour = intMin / 60;
		intMin = intMin - intHour * 60;
		System.out.println(intHour + ":" + intMin + ":" + intSec);
	} main {
		Scanner scan = new Scanner(System.in);
		int intInput = scan.nextInt();
		int intSec = intInput % 60;
		int intMin = (intInput - intSec)/60;
		int intHour = intMin / 60;
		intMin = intMin - intHour * 60;
		System.out.println(intHour + ":" + intMin + ":" + intSec);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int intInput = scan.nextInt(); intInput scan.nextInt() scan.nextInt scan int intSec = intInput % 60; intSec intInput % 60 intInput 60 int intMin = (intInput - intSec)/60; intMin (intInput - intSec)/60 (intInput - intSec) intInput intSec 60 int intHour = intMin / 60; intHour intMin / 60 intMin 60 intMin = intMin - intHour * 60 intMin intMin - intHour * 60 intMin intHour * 60 intHour 60 System.out.println(intHour + ":" + intMin + ":" + intSec) System.out.println System.out System System.out intHour + ":" + intMin + ":" + intSec ":" intMin intHour + ":" + intMin + ":" + intSec intHour ":" intMin ":" intSec String[] args args public class Main {

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intInput = scan.nextInt();
		int intSec = intInput % 60;
		int intMin = (intInput - intSec)/60;
		int intHour = intMin / 60;
		intMin = intMin - intHour * 60;
		System.out.println(intHour + ":" + intMin + ":" + intSec);
	}
} public class Main {

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intInput = scan.nextInt();
		int intSec = intInput % 60;
		int intMin = (intInput - intSec)/60;
		int intHour = intMin / 60;
		intMin = intMin - intHour * 60;
		System.out.println(intHour + ":" + intMin + ":" + intSec);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intInput = scan.nextInt();
		int intSec = intInput % 60;
		int intMin = (intInput - intSec)/60;
		int intHour = intMin / 60;
		intMin = intMin - intHour * 60;
		System.out.println(intHour + ":" + intMin + ":" + intSec);
	}
}