import java.util.Scanner;

public class Main{


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    	int Time = sc.nextInt();
    	int h = Time / 60 / 60;
    	int m = Time / 60 - h * 60;
    	int s = Time - m * 60 - h * 60 * 60;
        System.out.println(h + ":" + m + ":" + s);
        sc.close();
    }

} import java.util.Scanner; Scanner java.util public class Main{


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    	int Time = sc.nextInt();
    	int h = Time / 60 / 60;
    	int m = Time / 60 - h * 60;
    	int s = Time - m * 60 - h * 60 * 60;
        System.out.println(h + ":" + m + ":" + s);
        sc.close();
    }

} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    	int Time = sc.nextInt();
    	int h = Time / 60 / 60;
    	int m = Time / 60 - h * 60;
    	int s = Time - m * 60 - h * 60 * 60;
        System.out.println(h + ":" + m + ":" + s);
        sc.close();
    } main {
		Scanner sc = new Scanner(System.in);
    	int Time = sc.nextInt();
    	int h = Time / 60 / 60;
    	int m = Time / 60 - h * 60;
    	int s = Time - m * 60 - h * 60 * 60;
        System.out.println(h + ":" + m + ":" + s);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int Time = sc.nextInt(); Time sc.nextInt() sc.nextInt sc int h = Time / 60 / 60; h Time / 60 / 60 Time / 60 / 60 Time 60 60 int m = Time / 60 - h * 60; m Time / 60 - h * 60 Time / 60 Time 60 h * 60 h 60 int s = Time - m * 60 - h * 60 * 60; s Time - m * 60 - h * 60 * 60 Time - m * 60 - h * 60 * 60 Time m * 60 m 60 h * 60 * 60 h * 60 * 60 h 60 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 sc.close() sc.close sc String[] args args public class Main{


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    	int Time = sc.nextInt();
    	int h = Time / 60 / 60;
    	int m = Time / 60 - h * 60;
    	int s = Time - m * 60 - h * 60 * 60;
        System.out.println(h + ":" + m + ":" + s);
        sc.close();
    }

} public class Main{


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    	int Time = sc.nextInt();
    	int h = Time / 60 / 60;
    	int m = Time / 60 - h * 60;
    	int s = Time - m * 60 - h * 60 * 60;
        System.out.println(h + ":" + m + ":" + s);
        sc.close();
    }

} Main
import java.util.Scanner;

public class Main{


    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    	int Time = sc.nextInt();
    	int h = Time / 60 / 60;
    	int m = Time / 60 - h * 60;
    	int s = Time - m * 60 - h * 60 * 60;
        System.out.println(h + ":" + m + ":" + s);
        sc.close();
    }

}