import java.util.Scanner;
public class Main {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
 int s = sc.nextInt();
 int sec=(s%3600)%60;
 int min=(s%3600)/60;
 int hour=s/3600;
System.out.println(hour+ ":"+min +":"+sec);
}} import java.util.Scanner; Scanner java.util public class Main {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
 int s = sc.nextInt();
 int sec=(s%3600)%60;
 int min=(s%3600)/60;
 int hour=s/3600;
System.out.println(hour+ ":"+min +":"+sec);
}} Main public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
 int s = sc.nextInt();
 int sec=(s%3600)%60;
 int min=(s%3600)/60;
 int hour=s/3600;
System.out.println(hour+ ":"+min +":"+sec);
} main {
	Scanner sc = new Scanner(System.in);
 int s = sc.nextInt();
 int sec=(s%3600)%60;
 int min=(s%3600)/60;
 int hour=s/3600;
System.out.println(hour+ ":"+min +":"+sec);
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc int sec=(s%3600)%60; sec (s%3600)%60 (s%3600) s 3600 60 int min=(s%3600)/60; min (s%3600)/60 (s%3600) s 3600 60 int hour=s/3600; hour s/3600 s 3600 System.out.println(hour+ ":"+min +":"+sec) System.out.println System.out System System.out hour+ ":"+min +":"+sec ":" min hour+ ":"+min +":"+sec hour ":" min ":" sec String[] args args public class Main {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
 int s = sc.nextInt();
 int sec=(s%3600)%60;
 int min=(s%3600)/60;
 int hour=s/3600;
System.out.println(hour+ ":"+min +":"+sec);
}} public class Main {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
 int s = sc.nextInt();
 int sec=(s%3600)%60;
 int min=(s%3600)/60;
 int hour=s/3600;
System.out.println(hour+ ":"+min +":"+sec);
}} Main
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
 int s = sc.nextInt();
 int sec=(s%3600)%60;
 int min=(s%3600)/60;
 int hour=s/3600;
System.out.println(hour+ ":"+min +":"+sec);
}}