
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String str = br.readLine();
        int num = Integer.parseInt(str);

        int hh = num / 3600;
        int mm = (num - hh * 3600) / 60;
        int ss = ((num - hh * 3600) - mm * 60);

        System.out.println(hh + ":" + mm + ":" + ss);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String str = br.readLine();
        int num = Integer.parseInt(str);

        int hh = num / 3600;
        int mm = (num - hh * 3600) / 60;
        int ss = ((num - hh * 3600) - mm * 60);

        System.out.println(hh + ":" + mm + ":" + ss);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String str = br.readLine();
        int num = Integer.parseInt(str);

        int hh = num / 3600;
        int mm = (num - hh * 3600) / 60;
        int ss = ((num - hh * 3600) - mm * 60);

        System.out.println(hh + ":" + mm + ":" + ss);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String str = br.readLine();
        int num = Integer.parseInt(str);

        int hh = num / 3600;
        int mm = (num - hh * 3600) / 60;
        int ss = ((num - hh * 3600) - mm * 60);

        System.out.println(hh + ":" + mm + ":" + ss);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int num = Integer.parseInt(str); num Integer.parseInt(str) Integer.parseInt Integer str int hh = num / 3600; hh num / 3600 num 3600 int mm = (num - hh * 3600) / 60; mm (num - hh * 3600) / 60 (num - hh * 3600) num hh * 3600 hh 3600 60 int ss = ((num - hh * 3600) - mm * 60); ss ((num - hh * 3600) - mm * 60) (num - hh * 3600) num hh * 3600 hh 3600 mm * 60 mm 60 System.out.println(hh + ":" + mm + ":" + ss) System.out.println System.out System System.out hh + ":" + mm + ":" + ss ":" mm hh + ":" + mm + ":" + ss hh ":" mm ":" ss String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String str = br.readLine();
        int num = Integer.parseInt(str);

        int hh = num / 3600;
        int mm = (num - hh * 3600) / 60;
        int ss = ((num - hh * 3600) - mm * 60);

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

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String str = br.readLine();
        int num = Integer.parseInt(str);

        int hh = num / 3600;
        int mm = (num - hh * 3600) / 60;
        int ss = ((num - hh * 3600) - mm * 60);

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String str = br.readLine();
        int num = Integer.parseInt(str);

        int hh = num / 3600;
        int mm = (num - hh * 3600) / 60;
        int ss = ((num - hh * 3600) - mm * 60);

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