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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringTokenizer buffer = new StringTokenizer(br.readLine());
			int sec = Integer.parseInt(buffer.nextToken());
			
			int h = sec / 3600;
			int m = sec % 3600 / 60;
			int s = sec % 60;
			
			System.out.printf("%d:%d:%d\n",h,m,s);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringTokenizer buffer = new StringTokenizer(br.readLine());
			int sec = Integer.parseInt(buffer.nextToken());
			
			int h = sec / 3600;
			int m = sec % 3600 / 60;
			int s = sec % 60;
			
			System.out.printf("%d:%d:%d\n",h,m,s);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringTokenizer buffer = new StringTokenizer(br.readLine());
			int sec = Integer.parseInt(buffer.nextToken());
			
			int h = sec / 3600;
			int m = sec % 3600 / 60;
			int s = sec % 60;
			
			System.out.printf("%d:%d:%d\n",h,m,s);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringTokenizer buffer = new StringTokenizer(br.readLine());
			int sec = Integer.parseInt(buffer.nextToken());
			
			int h = sec / 3600;
			int m = sec % 3600 / 60;
			int s = sec % 60;
			
			System.out.printf("%d:%d:%d\n",h,m,s);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer buffer = new StringTokenizer(br.readLine()); buffer new StringTokenizer(br.readLine()) int sec = Integer.parseInt(buffer.nextToken()); sec Integer.parseInt(buffer.nextToken()) Integer.parseInt Integer buffer.nextToken() buffer.nextToken buffer int h = sec / 3600; h sec / 3600 sec 3600 int m = sec % 3600 / 60; m sec % 3600 / 60 sec % 3600 sec 3600 60 int s = sec % 60; s sec % 60 sec 60 System.out.printf("%d:%d:%d\n",h,m,s) System.out.printf System.out System System.out "%d:%d:%d\n" h m s String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringTokenizer buffer = new StringTokenizer(br.readLine());
			int sec = Integer.parseInt(buffer.nextToken());
			
			int h = sec / 3600;
			int m = sec % 3600 / 60;
			int s = sec % 60;
			
			System.out.printf("%d:%d:%d\n",h,m,s);
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringTokenizer buffer = new StringTokenizer(br.readLine());
			int sec = Integer.parseInt(buffer.nextToken());
			
			int h = sec / 3600;
			int m = sec % 3600 / 60;
			int s = sec % 60;
			
			System.out.printf("%d:%d:%d\n",h,m,s);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			StringTokenizer buffer = new StringTokenizer(br.readLine());
			int sec = Integer.parseInt(buffer.nextToken());
			
			int h = sec / 3600;
			int m = sec % 3600 / 60;
			int s = sec % 60;
			
			System.out.printf("%d:%d:%d\n",h,m,s);
	}
}
