import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int h = s / (60*60);
        s -= h*60*60;
        int m = s/60;
        s -= m*60;
        System.out.printf("%d:%d:%d\n", h, m, s);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int h = s / (60*60);
        s -= h*60*60;
        int m = s/60;
        s -= m*60;
        System.out.printf("%d:%d:%d\n", h, m, s);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int h = s / (60*60);
        s -= h*60*60;
        int m = s/60;
        s -= m*60;
        System.out.printf("%d:%d:%d\n", h, m, s);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int h = s / (60*60);
        s -= h*60*60;
        int m = s/60;
        s -= m*60;
        System.out.printf("%d:%d:%d\n", h, m, s);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc int h = s / (60*60); h s / (60*60) s (60*60) 60 60 s -= h*60*60 s h*60*60 h*60*60 h 60 60 int m = s/60; m s/60 s 60 s -= m*60 s m*60 m 60 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 sc.close() sc.close sc String[] args args
import java.util.Scanner;

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