import java.io.*;

class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String line = reader.readLine();
        int S = Integer.parseInt(line);
        if (S >= 0 && S < 86400) {
            int hour = S / 3600;
            S %= 3600;
            int minute = S / 60;
            int second = S % 60;
            System.out.println(hour + ":" + minute + ":" + second);
        }
    }
} import java.io.*; io.* java class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String line = reader.readLine();
        int S = Integer.parseInt(line);
        if (S >= 0 && S < 86400) {
            int hour = S / 3600;
            S %= 3600;
            int minute = S / 60;
            int second = S % 60;
            System.out.println(hour + ":" + minute + ":" + second);
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String line = reader.readLine();
        int S = Integer.parseInt(line);
        if (S >= 0 && S < 86400) {
            int hour = S / 3600;
            S %= 3600;
            int minute = S / 60;
            int second = S % 60;
            System.out.println(hour + ":" + minute + ":" + second);
        }
    } main {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String line = reader.readLine();
        int S = Integer.parseInt(line);
        if (S >= 0 && S < 86400) {
            int hour = S / 3600;
            S %= 3600;
            int minute = S / 60;
            int second = S % 60;
            System.out.println(hour + ":" + minute + ":" + second);
        }
    } BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String line = reader.readLine(); line reader.readLine() reader.readLine reader int S = Integer.parseInt(line); S Integer.parseInt(line) Integer.parseInt Integer line if (S >= 0 && S < 86400) {
            int hour = S / 3600;
            S %= 3600;
            int minute = S / 60;
            int second = S % 60;
            System.out.println(hour + ":" + minute + ":" + second);
        } S >= 0 && S < 86400 S >= 0 S 0 S < 86400 S 86400 {
            int hour = S / 3600;
            S %= 3600;
            int minute = S / 60;
            int second = S % 60;
            System.out.println(hour + ":" + minute + ":" + second);
        } int hour = S / 3600; hour S / 3600 S 3600 S %= 3600 S 3600 int minute = S / 60; minute S / 60 S 60 int second = S % 60; second S % 60 S 60 System.out.println(hour + ":" + minute + ":" + second) System.out.println System.out System System.out hour + ":" + minute + ":" + second ":" minute hour + ":" + minute + ":" + second hour ":" minute ":" second String[] args args
import java.io.*;

class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader =
            new BufferedReader(new InputStreamReader(System.in));

        String line = reader.readLine();
        int S = Integer.parseInt(line);
        if (S >= 0 && S < 86400) {
            int hour = S / 3600;
            S %= 3600;
            int minute = S / 60;
            int second = S % 60;
            System.out.println(hour + ":" + minute + ":" + second);
        }
    }
}