import java.util.Scanner;
import java.util.concurrent.TimeUnit;

public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int in = scanner.nextInt();
        final long h = TimeUnit.SECONDS.toHours(in);
        final long m = TimeUnit.SECONDS.toMinutes(in) - TimeUnit.HOURS.toMinutes(h);
        final long s = TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m);
        System.out.println(String.format("%d:%d:%d", h, m, s));
    }
} import java.util.Scanner; Scanner java.util import java.util.concurrent.TimeUnit; TimeUnit java.util.concurrent public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int in = scanner.nextInt();
        final long h = TimeUnit.SECONDS.toHours(in);
        final long m = TimeUnit.SECONDS.toMinutes(in) - TimeUnit.HOURS.toMinutes(h);
        final long s = TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m);
        System.out.println(String.format("%d:%d:%d", h, m, s));
    }
} Main public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int in = scanner.nextInt();
        final long h = TimeUnit.SECONDS.toHours(in);
        final long m = TimeUnit.SECONDS.toMinutes(in) - TimeUnit.HOURS.toMinutes(h);
        final long s = TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m);
        System.out.println(String.format("%d:%d:%d", h, m, s));
    } main {
        final Scanner scanner = new Scanner(System.in);
        final int in = scanner.nextInt();
        final long h = TimeUnit.SECONDS.toHours(in);
        final long m = TimeUnit.SECONDS.toMinutes(in) - TimeUnit.HOURS.toMinutes(h);
        final long s = TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m);
        System.out.println(String.format("%d:%d:%d", h, m, s));
    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int in = scanner.nextInt(); in scanner.nextInt() scanner.nextInt scanner final long h = TimeUnit.SECONDS.toHours(in); h TimeUnit.SECONDS.toHours(in) TimeUnit.SECONDS.toHours TimeUnit.SECONDS TimeUnit TimeUnit.SECONDS in final long m = TimeUnit.SECONDS.toMinutes(in) - TimeUnit.HOURS.toMinutes(h); m TimeUnit.SECONDS.toMinutes(in) - TimeUnit.HOURS.toMinutes(h) TimeUnit.SECONDS.toMinutes(in) TimeUnit.SECONDS.toMinutes TimeUnit.SECONDS TimeUnit TimeUnit.SECONDS in TimeUnit.HOURS.toMinutes(h) TimeUnit.HOURS.toMinutes TimeUnit.HOURS TimeUnit TimeUnit.HOURS h final long s = TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m); s TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m) TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m) TimeUnit.SECONDS.toSeconds(in) TimeUnit.SECONDS.toSeconds TimeUnit.SECONDS TimeUnit TimeUnit.SECONDS in TimeUnit.HOURS.toSeconds(h) TimeUnit.HOURS.toSeconds TimeUnit.HOURS TimeUnit TimeUnit.HOURS h TimeUnit.MINUTES.toSeconds(m) TimeUnit.MINUTES.toSeconds TimeUnit.MINUTES TimeUnit TimeUnit.MINUTES m System.out.println(String.format("%d:%d:%d", h, m, s)) System.out.println System.out System System.out String.format("%d:%d:%d", h, m, s) String.format String "%d:%d:%d" h m s String... args args public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int in = scanner.nextInt();
        final long h = TimeUnit.SECONDS.toHours(in);
        final long m = TimeUnit.SECONDS.toMinutes(in) - TimeUnit.HOURS.toMinutes(h);
        final long s = TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m);
        System.out.println(String.format("%d:%d:%d", h, m, s));
    }
} public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int in = scanner.nextInt();
        final long h = TimeUnit.SECONDS.toHours(in);
        final long m = TimeUnit.SECONDS.toMinutes(in) - TimeUnit.HOURS.toMinutes(h);
        final long s = TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m);
        System.out.println(String.format("%d:%d:%d", h, m, s));
    }
} Main
import java.util.Scanner;
import java.util.concurrent.TimeUnit;

public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int in = scanner.nextInt();
        final long h = TimeUnit.SECONDS.toHours(in);
        final long m = TimeUnit.SECONDS.toMinutes(in) - TimeUnit.HOURS.toMinutes(h);
        final long s = TimeUnit.SECONDS.toSeconds(in) - TimeUnit.HOURS.toSeconds(h) - TimeUnit.MINUTES.toSeconds(m);
        System.out.println(String.format("%d:%d:%d", h, m, s));
    }
}