import java.util.Scanner;
public class Main{
    public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	if(a >= 0 && a < 86400){
	    int h = a / 3600;
	    int m = a % 3600 / 60;
	    int s = a % 60;
		System.out.println(h+":"+m+":"+s);
	}
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	if(a >= 0 && a < 86400){
	    int h = a / 3600;
	    int m = a % 3600 / 60;
	    int s = a % 60;
		System.out.println(h+":"+m+":"+s);
	}
    }
} Main public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	if(a >= 0 && a < 86400){
	    int h = a / 3600;
	    int m = a % 3600 / 60;
	    int s = a % 60;
		System.out.println(h+":"+m+":"+s);
	}
    } main {

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

        Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	if(a >= 0 && a < 86400){
	    int h = a / 3600;
	    int m = a % 3600 / 60;
	    int s = a % 60;
		System.out.println(h+":"+m+":"+s);
	}
    }
} public class Main{
    public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	if(a >= 0 && a < 86400){
	    int h = a / 3600;
	    int m = a % 3600 / 60;
	    int s = a % 60;
		System.out.println(h+":"+m+":"+s);
	}
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[]args){

        Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	if(a >= 0 && a < 86400){
	    int h = a / 3600;
	    int m = a % 3600 / 60;
	    int s = a % 60;
		System.out.println(h+":"+m+":"+s);
	}
    }
}