import java.util.Scanner;
class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int secTime = sc.nextInt();
        if (secTime == 0) {
            System.out.println("0:0:0");
            return;
        }
        int ansSec = secTime % 60;
        int min = secTime / 60;
        if (min == 0) {
            System.out.println("0:0:" + ansSec);
            return;
        }
        int ansMin = min % 60;
        int ansHour = secTime / (60 * 60);
        System.out.println(ansHour + ":" + ansMin + ":" + ansSec);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int secTime = sc.nextInt();
        if (secTime == 0) {
            System.out.println("0:0:0");
            return;
        }
        int ansSec = secTime % 60;
        int min = secTime / 60;
        if (min == 0) {
            System.out.println("0:0:" + ansSec);
            return;
        }
        int ansMin = min % 60;
        int ansHour = secTime / (60 * 60);
        System.out.println(ansHour + ":" + ansMin + ":" + ansSec);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int secTime = sc.nextInt();
        if (secTime == 0) {
            System.out.println("0:0:0");
            return;
        }
        int ansSec = secTime % 60;
        int min = secTime / 60;
        if (min == 0) {
            System.out.println("0:0:" + ansSec);
            return;
        }
        int ansMin = min % 60;
        int ansHour = secTime / (60 * 60);
        System.out.println(ansHour + ":" + ansMin + ":" + ansSec);
    } main {
        Scanner sc = new Scanner(System.in);
        int secTime = sc.nextInt();
        if (secTime == 0) {
            System.out.println("0:0:0");
            return;
        }
        int ansSec = secTime % 60;
        int min = secTime / 60;
        if (min == 0) {
            System.out.println("0:0:" + ansSec);
            return;
        }
        int ansMin = min % 60;
        int ansHour = secTime / (60 * 60);
        System.out.println(ansHour + ":" + ansMin + ":" + ansSec);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int secTime = sc.nextInt(); secTime sc.nextInt() sc.nextInt sc if (secTime == 0) {
            System.out.println("0:0:0");
            return;
        } secTime == 0 secTime 0 {
            System.out.println("0:0:0");
            return;
        } System.out.println("0:0:0") System.out.println System.out System System.out "0:0:0" return; int ansSec = secTime % 60; ansSec secTime % 60 secTime 60 int min = secTime / 60; min secTime / 60 secTime 60 if (min == 0) {
            System.out.println("0:0:" + ansSec);
            return;
        } min == 0 min 0 {
            System.out.println("0:0:" + ansSec);
            return;
        } System.out.println("0:0:" + ansSec) System.out.println System.out System System.out "0:0:" + ansSec "0:0:" ansSec return; int ansMin = min % 60; ansMin min % 60 min 60 int ansHour = secTime / (60 * 60); ansHour secTime / (60 * 60) secTime (60 * 60) 60 60 System.out.println(ansHour + ":" + ansMin + ":" + ansSec) System.out.println System.out System System.out ansHour + ":" + ansMin + ":" + ansSec ":" ansMin ansHour + ":" + ansMin + ":" + ansSec ansHour ":" ansMin ":" ansSec String[] args args
import java.util.Scanner;
class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int secTime = sc.nextInt();
        if (secTime == 0) {
            System.out.println("0:0:0");
            return;
        }
        int ansSec = secTime % 60;
        int min = secTime / 60;
        if (min == 0) {
            System.out.println("0:0:" + ansSec);
            return;
        }
        int ansMin = min % 60;
        int ansHour = secTime / (60 * 60);
        System.out.println(ansHour + ":" + ansMin + ":" + ansSec);
    }
}