import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int time = scanner.nextInt();
    int h = time / 60 / 60;
    int m = (time / 60) % 60;
    int s = time % 60;

    System.out.println(h+":"+m+":"+s);
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int time = scanner.nextInt();
    int h = time / 60 / 60;
    int m = (time / 60) % 60;
    int s = time % 60;

    System.out.println(h+":"+m+":"+s);
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int time = scanner.nextInt();
    int h = time / 60 / 60;
    int m = (time / 60) % 60;
    int s = time % 60;

    System.out.println(h+":"+m+":"+s);
  } main {
    Scanner scanner = new Scanner(System.in);

    int time = scanner.nextInt();
    int h = time / 60 / 60;
    int m = (time / 60) % 60;
    int s = time % 60;

    System.out.println(h+":"+m+":"+s);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int time = scanner.nextInt(); time scanner.nextInt() scanner.nextInt scanner int h = time / 60 / 60; h time / 60 / 60 time / 60 / 60 time 60 60 int m = (time / 60) % 60; m (time / 60) % 60 (time / 60) time 60 60 int s = time % 60; s time % 60 time 60 System.out.println(h+":"+m+":"+s) System.out.println System.out System System.out h+":"+m+":"+s ":" m h+":"+m+":"+s h ":" m ":" s String[] args args
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int time = scanner.nextInt();
    int h = time / 60 / 60;
    int m = (time / 60) % 60;
    int s = time % 60;

    System.out.println(h+":"+m+":"+s);
  }
}