import java.io.*;
import java.util.Scanner;

class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        int s = ReadInt();
        System.out.print(s / 3600 + ":" + s / 60 % 60 + ":" + s % 60 + "\n");
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        int s = ReadInt();
        System.out.print(s / 3600 + ":" + s / 60 % 60 + ":" + s % 60 + "\n");
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) throws IOException {
        int s = ReadInt();
        System.out.print(s / 3600 + ":" + s / 60 % 60 + ":" + s % 60 + "\n");
    } main {
        int s = ReadInt();
        System.out.print(s / 3600 + ":" + s / 60 % 60 + ":" + s % 60 + "\n");
    } int s = ReadInt(); s ReadInt() ReadInt System.out.print(s / 3600 + ":" + s / 60 % 60 + ":" + s % 60 + "\n") System.out.print System.out System System.out s / 3600 + ":" + s / 60 % 60 + ":" + s % 60 + "\n" s % 60 ":" s / 60 % 60 s / 3600 + ":" + s / 60 % 60 + ":" + s % 60 + "\n" s / 3600 s 3600 ":" s / 60 % 60 s / 60 s 60 60 ":" s % 60 s 60 "\n" String[] args args static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    } ReadInt {
        return Integer.parseInt(sc.next());
    } return Integer.parseInt(sc.next()); Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc
import java.io.*;
import java.util.Scanner;

class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        int s = ReadInt();
        System.out.print(s / 3600 + ":" + s / 60 % 60 + ":" + s % 60 + "\n");
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
}