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

