import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int hour = (int)Math.ceil(x / 3600);
        int minutes = (int)Math.ceil((x - hour * 3600 ) / 60);
        int second = (x - hour * 3600 - minutes * 60);

        System.out.println(hour + ":" + minutes + ":" +second);
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int hour = (int)Math.ceil(x / 3600);
        int minutes = (int)Math.ceil((x - hour * 3600 ) / 60);
        int second = (x - hour * 3600 - minutes * 60);

        System.out.println(hour + ":" + minutes + ":" +second);
    }

} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int hour = (int)Math.ceil(x / 3600);
        int minutes = (int)Math.ceil((x - hour * 3600 ) / 60);
        int second = (x - hour * 3600 - minutes * 60);

        System.out.println(hour + ":" + minutes + ":" +second);
    } main {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int hour = (int)Math.ceil(x / 3600);
        int minutes = (int)Math.ceil((x - hour * 3600 ) / 60);
        int second = (x - hour * 3600 - minutes * 60);

        System.out.println(hour + ":" + minutes + ":" +second);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int x = s.nextInt(); x s.nextInt() s.nextInt s int hour = (int)Math.ceil(x / 3600); hour (int)Math.ceil(x / 3600) Math.ceil Math x / 3600 x 3600 int minutes = (int)Math.ceil((x - hour * 3600 ) / 60); minutes (int)Math.ceil((x - hour * 3600 ) / 60) Math.ceil Math (x - hour * 3600 ) / 60 (x - hour * 3600 ) x hour * 3600 hour 3600 60 int second = (x - hour * 3600 - minutes * 60); second (x - hour * 3600 - minutes * 60) x - hour * 3600 - minutes * 60 x hour * 3600 hour 3600 minutes * 60 minutes 60 System.out.println(hour + ":" + minutes + ":" +second) System.out.println System.out System System.out hour + ":" + minutes + ":" +second ":" minutes hour + ":" + minutes + ":" +second hour ":" minutes ":" second String[] args args public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int hour = (int)Math.ceil(x / 3600);
        int minutes = (int)Math.ceil((x - hour * 3600 ) / 60);
        int second = (x - hour * 3600 - minutes * 60);

        System.out.println(hour + ":" + minutes + ":" +second);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int hour = (int)Math.ceil(x / 3600);
        int minutes = (int)Math.ceil((x - hour * 3600 ) / 60);
        int second = (x - hour * 3600 - minutes * 60);

        System.out.println(hour + ":" + minutes + ":" +second);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int hour = (int)Math.ceil(x / 3600);
        int minutes = (int)Math.ceil((x - hour * 3600 ) / 60);
        int second = (x - hour * 3600 - minutes * 60);

        System.out.println(hour + ":" + minutes + ":" +second);
    }

}