import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int s = scanner.nextInt();
        if (0 <= s && s < 86400) {

            int m = s / 60;
            int h = m / 60;
            int mm=m%60;
            int ss = s % 60;

            System.out.println(h + ":" + mm + ":" + ss);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int s = scanner.nextInt();
        if (0 <= s && s < 86400) {

            int m = s / 60;
            int h = m / 60;
            int mm=m%60;
            int ss = s % 60;

            System.out.println(h + ":" + mm + ":" + ss);
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int s = scanner.nextInt();
        if (0 <= s && s < 86400) {

            int m = s / 60;
            int h = m / 60;
            int mm=m%60;
            int ss = s % 60;

            System.out.println(h + ":" + mm + ":" + ss);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int s = scanner.nextInt();
        if (0 <= s && s < 86400) {

            int m = s / 60;
            int h = m / 60;
            int mm=m%60;
            int ss = s % 60;

            System.out.println(h + ":" + mm + ":" + ss);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int s = scanner.nextInt(); s scanner.nextInt() scanner.nextInt scanner if (0 <= s && s < 86400) {

            int m = s / 60;
            int h = m / 60;
            int mm=m%60;
            int ss = s % 60;

            System.out.println(h + ":" + mm + ":" + ss);
        } 0 <= s && s < 86400 0 <= s 0 s s < 86400 s 86400 {

            int m = s / 60;
            int h = m / 60;
            int mm=m%60;
            int ss = s % 60;

            System.out.println(h + ":" + mm + ":" + ss);
        } int m = s / 60; m s / 60 s 60 int h = m / 60; h m / 60 m 60 int mm=m%60; mm m%60 m 60 int ss = s % 60; ss s % 60 s 60 System.out.println(h + ":" + mm + ":" + ss) System.out.println System.out System System.out h + ":" + mm + ":" + ss ":" mm h + ":" + mm + ":" + ss h ":" mm ":" ss String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int s = scanner.nextInt();
        if (0 <= s && s < 86400) {

            int m = s / 60;
            int h = m / 60;
            int mm=m%60;
            int ss = s % 60;

            System.out.println(h + ":" + mm + ":" + ss);
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int s = scanner.nextInt();
        if (0 <= s && s < 86400) {

            int m = s / 60;
            int h = m / 60;
            int mm=m%60;
            int ss = s % 60;

            System.out.println(h + ":" + mm + ":" + ss);
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int s = scanner.nextInt();
        if (0 <= s && s < 86400) {

            int m = s / 60;
            int h = m / 60;
            int mm=m%60;
            int ss = s % 60;

            System.out.println(h + ":" + mm + ":" + ss);
        }
    }
}