import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        int x,h,m,s;
        Scanner sc = new Scanner(System.in);
        x=sc.nextInt();
        h=x/3600;
        m=(x-3600*h)/60;
        s=x-3600*h-60*m;
        System.out.printf("%d:%d:%d%n",h,m,s);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        int x,h,m,s;
        Scanner sc = new Scanner(System.in);
        x=sc.nextInt();
        h=x/3600;
        m=(x-3600*h)/60;
        s=x-3600*h-60*m;
        System.out.printf("%d:%d:%d%n",h,m,s);
    }
} Main public static void main(String[] args){
        int x,h,m,s;
        Scanner sc = new Scanner(System.in);
        x=sc.nextInt();
        h=x/3600;
        m=(x-3600*h)/60;
        s=x-3600*h-60*m;
        System.out.printf("%d:%d:%d%n",h,m,s);
    } main {
        int x,h,m,s;
        Scanner sc = new Scanner(System.in);
        x=sc.nextInt();
        h=x/3600;
        m=(x-3600*h)/60;
        s=x-3600*h-60*m;
        System.out.printf("%d:%d:%d%n",h,m,s);
    } int x x h h m m s; s Scanner sc = new Scanner(System.in); sc new Scanner(System.in) x=sc.nextInt() x sc.nextInt() sc.nextInt sc h=x/3600 h x/3600 x 3600 m=(x-3600*h)/60 m (x-3600*h)/60 (x-3600*h) x 3600*h 3600 h 60 s=x-3600*h-60*m s x-3600*h-60*m x-3600*h-60*m x 3600*h 3600 h 60*m 60 m System.out.printf("%d:%d:%d%n",h,m,s) System.out.printf System.out System System.out "%d:%d:%d%n" h m s String[] args args public class Main {
    public static void main(String[] args){
        int x,h,m,s;
        Scanner sc = new Scanner(System.in);
        x=sc.nextInt();
        h=x/3600;
        m=(x-3600*h)/60;
        s=x-3600*h-60*m;
        System.out.printf("%d:%d:%d%n",h,m,s);
    }
} public class Main {
    public static void main(String[] args){
        int x,h,m,s;
        Scanner sc = new Scanner(System.in);
        x=sc.nextInt();
        h=x/3600;
        m=(x-3600*h)/60;
        s=x-3600*h-60*m;
        System.out.printf("%d:%d:%d%n",h,m,s);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        int x,h,m,s;
        Scanner sc = new Scanner(System.in);
        x=sc.nextInt();
        h=x/3600;
        m=(x-3600*h)/60;
        s=x-3600*h-60*m;
        System.out.printf("%d:%d:%d%n",h,m,s);
    }
}