import java.io.*;
class Main {
    public static void main(String[] args) throws IOException {
    	int tmp = 0;
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        int S = Integer.parseInt(r.readLine());
        int s = S%60;
        tmp = S/60;
        int m = tmp%60;
        tmp = tmp/60;
        int h = tmp%60;
        System.out.println(h + ":" + m + ":" + s);
    }
} import java.io.*; io.* java class Main {
    public static void main(String[] args) throws IOException {
    	int tmp = 0;
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        int S = Integer.parseInt(r.readLine());
        int s = S%60;
        tmp = S/60;
        int m = tmp%60;
        tmp = tmp/60;
        int h = tmp%60;
        System.out.println(h + ":" + m + ":" + s);
    }
} Main public static void main(String[] args) throws IOException {
    	int tmp = 0;
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        int S = Integer.parseInt(r.readLine());
        int s = S%60;
        tmp = S/60;
        int m = tmp%60;
        tmp = tmp/60;
        int h = tmp%60;
        System.out.println(h + ":" + m + ":" + s);
    } main {
    	int tmp = 0;
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        int S = Integer.parseInt(r.readLine());
        int s = S%60;
        tmp = S/60;
        int m = tmp%60;
        tmp = tmp/60;
        int h = tmp%60;
        System.out.println(h + ":" + m + ":" + s);
    } int tmp = 0; tmp 0 BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1); r new BufferedReader(new InputStreamReader(System.in), 1) int S = Integer.parseInt(r.readLine()); S Integer.parseInt(r.readLine()) Integer.parseInt Integer r.readLine() r.readLine r int s = S%60; s S%60 S 60 tmp = S/60 tmp S/60 S 60 int m = tmp%60; m tmp%60 tmp 60 tmp = tmp/60 tmp tmp/60 tmp 60 int h = tmp%60; h tmp%60 tmp 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.io.*;
class Main {
    public static void main(String[] args) throws IOException {
    	int tmp = 0;
        BufferedReader r =
            new BufferedReader(new InputStreamReader(System.in), 1);
        int S = Integer.parseInt(r.readLine());
        int s = S%60;
        tmp = S/60;
        int m = tmp%60;
        tmp = tmp/60;
        int h = tmp%60;
        System.out.println(h + ":" + m + ":" + s);
    }
}