import java.util.*;

class Main{
        public static void main(String[] args){
                Scanner scanner = new Scanner(System.in);
                int i = scanner.nextInt();
                int h = i/(60*60);
                int m = (i%(60*60))/60;
                int s = (i%(60));
                System.out.println(h + ":" + m + ":" + s);
        }
} import java.util.*; util.* java class Main{
        public static void main(String[] args){
                Scanner scanner = new Scanner(System.in);
                int i = scanner.nextInt();
                int h = i/(60*60);
                int m = (i%(60*60))/60;
                int s = (i%(60));
                System.out.println(h + ":" + m + ":" + s);
        }
} Main public static void main(String[] args){
                Scanner scanner = new Scanner(System.in);
                int i = scanner.nextInt();
                int h = i/(60*60);
                int m = (i%(60*60))/60;
                int s = (i%(60));
                System.out.println(h + ":" + m + ":" + s);
        } main {
                Scanner scanner = new Scanner(System.in);
                int i = scanner.nextInt();
                int h = i/(60*60);
                int m = (i%(60*60))/60;
                int s = (i%(60));
                System.out.println(h + ":" + m + ":" + s);
        } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int i = scanner.nextInt(); i scanner.nextInt() scanner.nextInt scanner int h = i/(60*60); h i/(60*60) i (60*60) 60 60 int m = (i%(60*60))/60; m (i%(60*60))/60 (i%(60*60)) i (60*60) 60 60 60 int s = (i%(60)); s (i%(60)) i (60) System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s String[] args args
import java.util.*;

class Main{
        public static void main(String[] args){
                Scanner scanner = new Scanner(System.in);
                int i = scanner.nextInt();
                int h = i/(60*60);
                int m = (i%(60*60))/60;
                int s = (i%(60));
                System.out.println(h + ":" + m + ":" + s);
        }
}