import java.util.Scanner;


class Main { 
  public static void main(String[] args)

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

{
	Scanner stdIn=new Scanner(System.in);
	int S = stdIn.nextInt();
	int h,m,s;
	
	
	
	h=S/3600;
	int i=S-(3600*h);
	m=i/60;
	s=i-(60*m);
	
	
	System.out.println(h+":"+m+":"+s);
	
	
	
  }
} Main public static void main(String[] args)

{
	Scanner stdIn=new Scanner(System.in);
	int S = stdIn.nextInt();
	int h,m,s;
	
	
	
	h=S/3600;
	int i=S-(3600*h);
	m=i/60;
	s=i-(60*m);
	
	
	System.out.println(h+":"+m+":"+s);
	
	
	
  } main {
	Scanner stdIn=new Scanner(System.in);
	int S = stdIn.nextInt();
	int h,m,s;
	
	
	
	h=S/3600;
	int i=S-(3600*h);
	m=i/60;
	s=i-(60*m);
	
	
	System.out.println(h+":"+m+":"+s);
	
	
	
  } Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) int S = stdIn.nextInt(); S stdIn.nextInt() stdIn.nextInt stdIn int h h m m s; s h=S/3600 h S/3600 S 3600 int i=S-(3600*h); i S-(3600*h) S (3600*h) 3600 h m=i/60 m i/60 i 60 s=i-(60*m) s i-(60*m) i (60*m) 60 m 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 stdIn=new Scanner(System.in);
	int S = stdIn.nextInt();
	int h,m,s;
	
	
	
	h=S/3600;
	int i=S-(3600*h);
	m=i/60;
	s=i-(60*m);
	
	
	System.out.println(h+":"+m+":"+s);
	
	
	
  }
}