import java.util.Scanner;


public class Main{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long s = in.nextLong();
  
        System.out.printf("%d:%d:%d%n", s / 3600, s / 60 % 60, s % 60);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long s = in.nextLong();
  
        System.out.printf("%d:%d:%d%n", s / 3600, s / 60 % 60, s % 60);
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long s = in.nextLong();
  
        System.out.printf("%d:%d:%d%n", s / 3600, s / 60 % 60, s % 60);
    } main {
        Scanner in = new Scanner(System.in);
        long s = in.nextLong();
  
        System.out.printf("%d:%d:%d%n", s / 3600, s / 60 % 60, s % 60);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) long s = in.nextLong(); s in.nextLong() in.nextLong in 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) {
        Scanner in = new Scanner(System.in);
        long s = in.nextLong();
  
        System.out.printf("%d:%d:%d%n", s / 3600, s / 60 % 60, s % 60);
    }
} public class Main{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long s = in.nextLong();
  
        System.out.printf("%d:%d:%d%n", s / 3600, s / 60 % 60, s % 60);
    }
} Main
import java.util.Scanner;


public class Main{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long s = in.nextLong();
  
        System.out.printf("%d:%d:%d%n", s / 3600, s / 60 % 60, s % 60);
    }
}