import java.io.*;
import java.util.*;

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

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