import java.util.*;

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

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int s = sc.nextInt();
	System.out.println(s/3600 + ":" + s%3600/60 + ":" + s%3600%60);
	}
}