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

public class Main {

	public static void main(String[] args) throws Exception{
        int S;
        int h, m, s;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        S = Integer.parseInt(br.readLine());

        h = S / (60 * 60);
        S = S % (60 * 60);
        m = S / 60;
        s = S % 60;
        System.out.println(h + ":" + m + ":" + s);

    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception{
        int S;
        int h, m, s;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        S = Integer.parseInt(br.readLine());

        h = S / (60 * 60);
        S = S % (60 * 60);
        m = S / 60;
        s = S % 60;
        System.out.println(h + ":" + m + ":" + s);

    }

} Main public static void main(String[] args) throws Exception{
        int S;
        int h, m, s;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        S = Integer.parseInt(br.readLine());

        h = S / (60 * 60);
        S = S % (60 * 60);
        m = S / 60;
        s = S % 60;
        System.out.println(h + ":" + m + ":" + s);

    } main {
        int S;
        int h, m, s;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        S = Integer.parseInt(br.readLine());

        h = S / (60 * 60);
        S = S % (60 * 60);
        m = S / 60;
        s = S % 60;
        System.out.println(h + ":" + m + ":" + s);

    } int S; S int h h m m s; s BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) S = Integer.parseInt(br.readLine()) S Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br h = S / (60 * 60) h S / (60 * 60) S (60 * 60) 60 60 S = S % (60 * 60) S S % (60 * 60) S (60 * 60) 60 60 m = S / 60 m S / 60 S 60 s = S % 60 s S % 60 S 60 System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s String[] args args public class Main {

	public static void main(String[] args) throws Exception{
        int S;
        int h, m, s;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        S = Integer.parseInt(br.readLine());

        h = S / (60 * 60);
        S = S % (60 * 60);
        m = S / 60;
        s = S % 60;
        System.out.println(h + ":" + m + ":" + s);

    }

} public class Main {

	public static void main(String[] args) throws Exception{
        int S;
        int h, m, s;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        S = Integer.parseInt(br.readLine());

        h = S / (60 * 60);
        S = S % (60 * 60);
        m = S / 60;
        s = S % 60;
        System.out.println(h + ":" + m + ":" + s);

    }

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception{
        int S;
        int h, m, s;

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        S = Integer.parseInt(br.readLine());

        h = S / (60 * 60);
        S = S % (60 * 60);
        m = S / 60;
        s = S % 60;
        System.out.println(h + ":" + m + ":" + s);

    }

}