
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int b = 0;
		int c = 0;

		int su = Integer.parseInt(br.readLine());
		if((su > 0) && (86400 > su)){

			if(su >= 60){
				c = su / 60;
				su %= 60;
			}
			if(c >= 60){
				b = c / 60;
				c = c % 60;
			}
		}

		System.out.println(b+":"+c + ":" + su);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int b = 0;
		int c = 0;

		int su = Integer.parseInt(br.readLine());
		if((su > 0) && (86400 > su)){

			if(su >= 60){
				c = su / 60;
				su %= 60;
			}
			if(c >= 60){
				b = c / 60;
				c = c % 60;
			}
		}

		System.out.println(b+":"+c + ":" + su);
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int b = 0;
		int c = 0;

		int su = Integer.parseInt(br.readLine());
		if((su > 0) && (86400 > su)){

			if(su >= 60){
				c = su / 60;
				su %= 60;
			}
			if(c >= 60){
				b = c / 60;
				c = c % 60;
			}
		}

		System.out.println(b+":"+c + ":" + su);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int b = 0;
		int c = 0;

		int su = Integer.parseInt(br.readLine());
		if((su > 0) && (86400 > su)){

			if(su >= 60){
				c = su / 60;
				su %= 60;
			}
			if(c >= 60){
				b = c / 60;
				c = c % 60;
			}
		}

		System.out.println(b+":"+c + ":" + su);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int b = 0; b 0 int c = 0; c 0 int su = Integer.parseInt(br.readLine()); su Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if((su > 0) && (86400 > su)){

			if(su >= 60){
				c = su / 60;
				su %= 60;
			}
			if(c >= 60){
				b = c / 60;
				c = c % 60;
			}
		} (su > 0) && (86400 > su) (su > 0) su 0 (86400 > su) 86400 su {

			if(su >= 60){
				c = su / 60;
				su %= 60;
			}
			if(c >= 60){
				b = c / 60;
				c = c % 60;
			}
		} if(su >= 60){
				c = su / 60;
				su %= 60;
			} su >= 60 su 60 {
				c = su / 60;
				su %= 60;
			} c = su / 60 c su / 60 su 60 su %= 60 su 60 if(c >= 60){
				b = c / 60;
				c = c % 60;
			} c >= 60 c 60 {
				b = c / 60;
				c = c % 60;
			} b = c / 60 b c / 60 c 60 c = c % 60 c c % 60 c 60 System.out.println(b+":"+c + ":" + su) System.out.println System.out System System.out b+":"+c + ":" + su ":" c b+":"+c + ":" + su b ":" c ":" su String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int b = 0;
		int c = 0;

		int su = Integer.parseInt(br.readLine());
		if((su > 0) && (86400 > su)){

			if(su >= 60){
				c = su / 60;
				su %= 60;
			}
			if(c >= 60){
				b = c / 60;
				c = c % 60;
			}
		}

		System.out.println(b+":"+c + ":" + su);
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int b = 0;
		int c = 0;

		int su = Integer.parseInt(br.readLine());
		if((su > 0) && (86400 > su)){

			if(su >= 60){
				c = su / 60;
				su %= 60;
			}
			if(c >= 60){
				b = c / 60;
				c = c % 60;
			}
		}

		System.out.println(b+":"+c + ":" + su);
	}
} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int b = 0;
		int c = 0;

		int su = Integer.parseInt(br.readLine());
		if((su > 0) && (86400 > su)){

			if(su >= 60){
				c = su / 60;
				su %= 60;
			}
			if(c >= 60){
				b = c / 60;
				c = c % 60;
			}
		}

		System.out.println(b+":"+c + ":" + su);
	}
}