import java.util.*;

class Watch {
    public static void main(String... args) {
        final Scanner sc = new Scanner(System.in);
        final int s = sc.nextInt();
        System.out.printf("%d:%d:%d\n", s / 3600, s / 60 % 60, s % 60);
    }
}
public class Main {
    public static void main(String... args) {
        Watch.main();
    }
} import java.util.*; util.* java class Watch {
    public static void main(String... args) {
        final Scanner sc = new Scanner(System.in);
        final int s = sc.nextInt();
        System.out.printf("%d:%d:%d\n", s / 3600, s / 60 % 60, s % 60);
    }
} Watch public static void main(String... args) {
        final Scanner sc = new Scanner(System.in);
        final int s = sc.nextInt();
        System.out.printf("%d:%d:%d\n", s / 3600, s / 60 % 60, s % 60);
    } main {
        final Scanner sc = new Scanner(System.in);
        final int s = sc.nextInt();
        System.out.printf("%d:%d:%d\n", s / 3600, s / 60 % 60, s % 60);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc System.out.printf("%d:%d:%d\n", s / 3600, s / 60 % 60, s % 60) System.out.printf System.out System System.out "%d:%d:%d\n" s / 3600 s 3600 s / 60 % 60 s / 60 s 60 60 s % 60 s 60 String... args args public class Main {
    public static void main(String... args) {
        Watch.main();
    }
} Main public static void main(String... args) {
        Watch.main();
    } main {
        Watch.main();
    } Watch.main() Watch.main Watch String... args args public class Main {
    public static void main(String... args) {
        Watch.main();
    }
} public class Main {
    public static void main(String... args) {
        Watch.main();
    }
} Main
import java.util.*;

class Watch {
    public static void main(String... args) {
        final Scanner sc = new Scanner(System.in);
        final int s = sc.nextInt();
        System.out.printf("%d:%d:%d\n", s / 3600, s / 60 % 60, s % 60);
    }
}
public class Main {
    public static void main(String... args) {
        Watch.main();
    }
}