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