import java.util.Scanner;
public class Main {
	void watch(){
		int h,m,s;
		Scanner s1 = new Scanner(System.in);
		s = s1.nextInt();
		h = s/3600;
		s-=h*3600;
		m = s/60;
		s-=m*60;
		System.out.println(h + ":" + m + ":" + s);
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.watch();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void watch(){
		int h,m,s;
		Scanner s1 = new Scanner(System.in);
		s = s1.nextInt();
		h = s/3600;
		s-=h*3600;
		m = s/60;
		s-=m*60;
		System.out.println(h + ":" + m + ":" + s);
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.watch();
	}
} Main void watch(){
		int h,m,s;
		Scanner s1 = new Scanner(System.in);
		s = s1.nextInt();
		h = s/3600;
		s-=h*3600;
		m = s/60;
		s-=m*60;
		System.out.println(h + ":" + m + ":" + s);
	} watch {
		int h,m,s;
		Scanner s1 = new Scanner(System.in);
		s = s1.nextInt();
		h = s/3600;
		s-=h*3600;
		m = s/60;
		s-=m*60;
		System.out.println(h + ":" + m + ":" + s);
	} int h h m m s; s Scanner s1 = new Scanner(System.in); s1 new Scanner(System.in) s = s1.nextInt() s s1.nextInt() s1.nextInt s1 h = s/3600 h s/3600 s 3600 s-=h*3600 s h*3600 h 3600 m = s/60 m s/60 s 60 s-=m*60 s 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 public static void main(String args[]){
		Main m1 = new Main();
		m1.watch();
	} main {
		Main m1 = new Main();
		m1.watch();
	} Main m1 = new Main(); m1 new Main() m1.watch() m1.watch m1 String args[] args public class Main {
	void watch(){
		int h,m,s;
		Scanner s1 = new Scanner(System.in);
		s = s1.nextInt();
		h = s/3600;
		s-=h*3600;
		m = s/60;
		s-=m*60;
		System.out.println(h + ":" + m + ":" + s);
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.watch();
	}
} public class Main {
	void watch(){
		int h,m,s;
		Scanner s1 = new Scanner(System.in);
		s = s1.nextInt();
		h = s/3600;
		s-=h*3600;
		m = s/60;
		s-=m*60;
		System.out.println(h + ":" + m + ":" + s);
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.watch();
	}
} Main
import java.util.Scanner;
public class Main {
	void watch(){
		int h,m,s;
		Scanner s1 = new Scanner(System.in);
		s = s1.nextInt();
		h = s/3600;
		s-=h*3600;
		m = s/60;
		s-=m*60;
		System.out.println(h + ":" + m + ":" + s);
	}
	public static void main(String args[]){
		Main m1 = new Main();
		m1.watch();
	}
}