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

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int s = in.nextInt();
       int h = s / 3600;
       s -= 3600*h;
       int m = s / 60;
       s -= 60*m;
       System.out.printf("%d:%d:%d\n",h,m,s);
    }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int s = in.nextInt();
       int h = s / 3600;
       s -= 3600*h;
       int m = s / 60;
       s -= 60*m;
       System.out.printf("%d:%d:%d\n",h,m,s);
    }
} Main public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int s = in.nextInt();
       int h = s / 3600;
       s -= 3600*h;
       int m = s / 60;
       s -= 60*m;
       System.out.printf("%d:%d:%d\n",h,m,s);
    } main {
       Scanner in = new Scanner(System.in);
       int s = in.nextInt();
       int h = s / 3600;
       s -= 3600*h;
       int m = s / 60;
       s -= 60*m;
       System.out.printf("%d:%d:%d\n",h,m,s);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int s = in.nextInt(); s in.nextInt() in.nextInt in int h = s / 3600; h s / 3600 s 3600 s -= 3600*h s 3600*h 3600 h int m = s / 60; m s / 60 s 60 s -= 60*m s 60*m 60 m System.out.printf("%d:%d:%d\n",h,m,s) System.out.printf System.out System System.out "%d:%d:%d\n" h m s String[] args args
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int s = in.nextInt();
       int h = s / 3600;
       s -= 3600*h;
       int m = s / 60;
       s -= 60*m;
       System.out.printf("%d:%d:%d\n",h,m,s);
    }
}