import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int x;
		int sec,min,hour;
		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();

		sec = x % 60;
		x = x / 60;
		min = x % 60;
		x = x / 60;
		hour = x;

		System.out.println(hour +":"+ min + ":"+ sec);
		sc.close();
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int x;
		int sec,min,hour;
		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();

		sec = x % 60;
		x = x / 60;
		min = x % 60;
		x = x / 60;
		hour = x;

		System.out.println(hour +":"+ min + ":"+ sec);
		sc.close();
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int x;
		int sec,min,hour;
		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();

		sec = x % 60;
		x = x / 60;
		min = x % 60;
		x = x / 60;
		hour = x;

		System.out.println(hour +":"+ min + ":"+ sec);
		sc.close();
	} main {
		// TODO ?????????????????????????????????????????????
		int x;
		int sec,min,hour;
		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();

		sec = x % 60;
		x = x / 60;
		min = x % 60;
		x = x / 60;
		hour = x;

		System.out.println(hour +":"+ min + ":"+ sec);
		sc.close();
	} int x; x int sec sec min min hour; hour Scanner sc = new Scanner(System.in); sc new Scanner(System.in) x = sc.nextInt() x sc.nextInt() sc.nextInt sc sec = x % 60 sec x % 60 x 60 x = x / 60 x x / 60 x 60 min = x % 60 min x % 60 x 60 x = x / 60 x x / 60 x 60 hour = x hour x System.out.println(hour +":"+ min + ":"+ sec) System.out.println System.out System System.out hour +":"+ min + ":"+ sec ":" min hour +":"+ min + ":"+ sec hour ":" min ":" sec sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int x;
		int sec,min,hour;
		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();

		sec = x % 60;
		x = x / 60;
		min = x % 60;
		x = x / 60;
		hour = x;

		System.out.println(hour +":"+ min + ":"+ sec);
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int x;
		int sec,min,hour;
		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();

		sec = x % 60;
		x = x / 60;
		min = x % 60;
		x = x / 60;
		hour = x;

		System.out.println(hour +":"+ min + ":"+ sec);
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int x;
		int sec,min,hour;
		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();

		sec = x % 60;
		x = x / 60;
		min = x % 60;
		x = x / 60;
		hour = x;

		System.out.println(hour +":"+ min + ":"+ sec);
		sc.close();
	}

}