import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int time = Integer.parseInt( scaner.next() );
		final int HOUR = 3600;
		final int MINUTE = 60;

		int hour ;
		int minute ;
		int second  ;
		int remain;

		hour   = time / HOUR;
		remain = time % HOUR;

		minute = remain / MINUTE;
		remain = remain % MINUTE;

		second = remain;

		System.out.println( hour + ":" + minute + ":" + second );

		scaner.close();

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int time = Integer.parseInt( scaner.next() );
		final int HOUR = 3600;
		final int MINUTE = 60;

		int hour ;
		int minute ;
		int second  ;
		int remain;

		hour   = time / HOUR;
		remain = time % HOUR;

		minute = remain / MINUTE;
		remain = remain % MINUTE;

		second = remain;

		System.out.println( hour + ":" + minute + ":" + second );

		scaner.close();

	}

} Main public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int time = Integer.parseInt( scaner.next() );
		final int HOUR = 3600;
		final int MINUTE = 60;

		int hour ;
		int minute ;
		int second  ;
		int remain;

		hour   = time / HOUR;
		remain = time % HOUR;

		minute = remain / MINUTE;
		remain = remain % MINUTE;

		second = remain;

		System.out.println( hour + ":" + minute + ":" + second );

		scaner.close();

	} main {

		Scanner scaner = new Scanner( System.in );

		int time = Integer.parseInt( scaner.next() );
		final int HOUR = 3600;
		final int MINUTE = 60;

		int hour ;
		int minute ;
		int second  ;
		int remain;

		hour   = time / HOUR;
		remain = time % HOUR;

		minute = remain / MINUTE;
		remain = remain % MINUTE;

		second = remain;

		System.out.println( hour + ":" + minute + ":" + second );

		scaner.close();

	} Scanner scaner = new Scanner( System.in ); scaner new Scanner( System.in ) int time = Integer.parseInt( scaner.next() ); time Integer.parseInt( scaner.next() ) Integer.parseInt Integer scaner.next() scaner.next scaner final int HOUR = 3600; HOUR 3600 final int MINUTE = 60; MINUTE 60 int hour ; hour int minute ; minute int second  ; second int remain; remain hour   = time / HOUR hour time / HOUR time HOUR remain = time % HOUR remain time % HOUR time HOUR minute = remain / MINUTE minute remain / MINUTE remain MINUTE remain = remain % MINUTE remain remain % MINUTE remain MINUTE second = remain second remain System.out.println( hour + ":" + minute + ":" + second ) System.out.println System.out System System.out hour + ":" + minute + ":" + second ":" minute hour + ":" + minute + ":" + second hour ":" minute ":" second scaner.close() scaner.close scaner String[] args args public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int time = Integer.parseInt( scaner.next() );
		final int HOUR = 3600;
		final int MINUTE = 60;

		int hour ;
		int minute ;
		int second  ;
		int remain;

		hour   = time / HOUR;
		remain = time % HOUR;

		minute = remain / MINUTE;
		remain = remain % MINUTE;

		second = remain;

		System.out.println( hour + ":" + minute + ":" + second );

		scaner.close();

	}

} public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int time = Integer.parseInt( scaner.next() );
		final int HOUR = 3600;
		final int MINUTE = 60;

		int hour ;
		int minute ;
		int second  ;
		int remain;

		hour   = time / HOUR;
		remain = time % HOUR;

		minute = remain / MINUTE;
		remain = remain % MINUTE;

		second = remain;

		System.out.println( hour + ":" + minute + ":" + second );

		scaner.close();

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int time = Integer.parseInt( scaner.next() );
		final int HOUR = 3600;
		final int MINUTE = 60;

		int hour ;
		int minute ;
		int second  ;
		int remain;

		hour   = time / HOUR;
		remain = time % HOUR;

		minute = remain / MINUTE;
		remain = remain % MINUTE;

		second = remain;

		System.out.println( hour + ":" + minute + ":" + second );

		scaner.close();

	}

}