import java.lang.*;
import java.util.*;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner stdId = new Scanner(System.in);
        int s = stdId.nextInt();
        int hh = (int)s/3600;
        int mm = (int)s%3600/60;
        int ss = (int)s%3600%60;
        System.out.println(hh+":"+mm+":"+ss);
    }
} import java.lang.*; lang.* java import java.util.*; util.* java public class Main {

    public static void main(String[] args) throws Exception {
        Scanner stdId = new Scanner(System.in);
        int s = stdId.nextInt();
        int hh = (int)s/3600;
        int mm = (int)s%3600/60;
        int ss = (int)s%3600%60;
        System.out.println(hh+":"+mm+":"+ss);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner stdId = new Scanner(System.in);
        int s = stdId.nextInt();
        int hh = (int)s/3600;
        int mm = (int)s%3600/60;
        int ss = (int)s%3600%60;
        System.out.println(hh+":"+mm+":"+ss);
    } main {
        Scanner stdId = new Scanner(System.in);
        int s = stdId.nextInt();
        int hh = (int)s/3600;
        int mm = (int)s%3600/60;
        int ss = (int)s%3600%60;
        System.out.println(hh+":"+mm+":"+ss);
    } Scanner stdId = new Scanner(System.in); stdId new Scanner(System.in) int s = stdId.nextInt(); s stdId.nextInt() stdId.nextInt stdId int hh = (int)s/3600; hh (int)s/3600 (int)s 3600 int mm = (int)s%3600/60; mm (int)s%3600/60 (int)s%3600 (int)s 3600 60 int ss = (int)s%3600%60; ss (int)s%3600%60 (int)s%3600%60 (int)s 3600 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 Exception {
        Scanner stdId = new Scanner(System.in);
        int s = stdId.nextInt();
        int hh = (int)s/3600;
        int mm = (int)s%3600/60;
        int ss = (int)s%3600%60;
        System.out.println(hh+":"+mm+":"+ss);
    }
} public class Main {

    public static void main(String[] args) throws Exception {
        Scanner stdId = new Scanner(System.in);
        int s = stdId.nextInt();
        int hh = (int)s/3600;
        int mm = (int)s%3600/60;
        int ss = (int)s%3600%60;
        System.out.println(hh+":"+mm+":"+ss);
    }
} Main
import java.lang.*;
import java.util.*;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner stdId = new Scanner(System.in);
        int s = stdId.nextInt();
        int hh = (int)s/3600;
        int mm = (int)s%3600/60;
        int ss = (int)s%3600%60;
        System.out.println(hh+":"+mm+":"+ss);
    }
}