import java.util.Scanner;


class Main {
	public static void main(String args[]) {
		
	    Scanner sc = new Scanner(System.in);
	    String  t = sc.next();
	    int S = Integer.parseInt(t);
	    if( 0 <= S && S < 86400){
	        int h = S / 60 / 60;
            int m = ( S - (h * 60 * 60) ) / 60;
            int s = ( S - (h * 60 * 60 + m * 60));
	        System.out.println( h + ":" + m + ":" + s );
    	}
	}

} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]) {
		
	    Scanner sc = new Scanner(System.in);
	    String  t = sc.next();
	    int S = Integer.parseInt(t);
	    if( 0 <= S && S < 86400){
	        int h = S / 60 / 60;
            int m = ( S - (h * 60 * 60) ) / 60;
            int s = ( S - (h * 60 * 60 + m * 60));
	        System.out.println( h + ":" + m + ":" + s );
    	}
	}

} Main public static void main(String args[]) {
		
	    Scanner sc = new Scanner(System.in);
	    String  t = sc.next();
	    int S = Integer.parseInt(t);
	    if( 0 <= S && S < 86400){
	        int h = S / 60 / 60;
            int m = ( S - (h * 60 * 60) ) / 60;
            int s = ( S - (h * 60 * 60 + m * 60));
	        System.out.println( h + ":" + m + ":" + s );
    	}
	} main {
		
	    Scanner sc = new Scanner(System.in);
	    String  t = sc.next();
	    int S = Integer.parseInt(t);
	    if( 0 <= S && S < 86400){
	        int h = S / 60 / 60;
            int m = ( S - (h * 60 * 60) ) / 60;
            int s = ( S - (h * 60 * 60 + m * 60));
	        System.out.println( h + ":" + m + ":" + s );
    	}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String  t = sc.next(); t sc.next() sc.next sc int S = Integer.parseInt(t); S Integer.parseInt(t) Integer.parseInt Integer t if( 0 <= S && S < 86400){
	        int h = S / 60 / 60;
            int m = ( S - (h * 60 * 60) ) / 60;
            int s = ( S - (h * 60 * 60 + m * 60));
	        System.out.println( h + ":" + m + ":" + s );
    	} 0 <= S && S < 86400 0 <= S 0 S S < 86400 S 86400 {
	        int h = S / 60 / 60;
            int m = ( S - (h * 60 * 60) ) / 60;
            int s = ( S - (h * 60 * 60 + m * 60));
	        System.out.println( h + ":" + m + ":" + s );
    	} int h = S / 60 / 60; h S / 60 / 60 S / 60 / 60 S 60 60 int m = ( S - (h * 60 * 60) ) / 60; m ( S - (h * 60 * 60) ) / 60 ( S - (h * 60 * 60) ) S (h * 60 * 60) h * 60 * 60 h 60 60 60 int s = ( S - (h * 60 * 60 + m * 60)); s ( S - (h * 60 * 60 + m * 60)) S (h * 60 * 60 + m * 60) h * 60 * 60 h * 60 * 60 h 60 60 m * 60 m 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.Scanner;


class Main {
	public static void main(String args[]) {
		
	    Scanner sc = new Scanner(System.in);
	    String  t = sc.next();
	    int S = Integer.parseInt(t);
	    if( 0 <= S && S < 86400){
	        int h = S / 60 / 60;
            int m = ( S - (h * 60 * 60) ) / 60;
            int s = ( S - (h * 60 * 60 + m * 60));
	        System.out.println( h + ":" + m + ":" + s );
    	}
	}

}