import java.io.*;

public class Main{
public static void main(String[] args){
	try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int s = Integer.parseInt(str);

		if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		}
	}catch(IOException e){
	System.out.println(e);
	}
}
} import java.io.*; io.* java public class Main{
public static void main(String[] args){
	try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int s = Integer.parseInt(str);

		if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		}
	}catch(IOException e){
	System.out.println(e);
	}
}
} Main public static void main(String[] args){
	try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int s = Integer.parseInt(str);

		if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		}
	}catch(IOException e){
	System.out.println(e);
	}
} main {
	try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int s = Integer.parseInt(str);

		if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		}
	}catch(IOException e){
	System.out.println(e);
	}
} try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int s = Integer.parseInt(str);

		if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		}
	}catch(IOException e){
	System.out.println(e);
	} catch(IOException e){
	System.out.println(e);
	} IOException e {
	System.out.println(e);
	} System.out.println(e) System.out.println System.out System System.out e {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int s = Integer.parseInt(str);

		if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int s = Integer.parseInt(str); s Integer.parseInt(str) Integer.parseInt Integer str if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		} (0 <= s) && (s < 86400) (0 <= s) 0 s (s < 86400) s 86400 {
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		} int hour = s/(60*60); hour s/(60*60) s (60*60) 60 60 int minute = s%(60*60)/60; minute s%(60*60)/60 s%(60*60) s (60*60) 60 60 60 int second = s%(60*60)%60; second s%(60*60)%60 s%(60*60)%60 s (60*60) 60 60 60 System.out.println(hour + ":" + minute + ":" + second) System.out.println System.out System System.out hour + ":" + minute + ":" + second ":" minute hour + ":" + minute + ":" + second hour ":" minute ":" second String[] args args public class Main{
public static void main(String[] args){
	try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int s = Integer.parseInt(str);

		if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		}
	}catch(IOException e){
	System.out.println(e);
	}
}
} public class Main{
public static void main(String[] args){
	try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int s = Integer.parseInt(str);

		if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		}
	}catch(IOException e){
	System.out.println(e);
	}
}
} Main
import java.io.*;

public class Main{
public static void main(String[] args){
	try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int s = Integer.parseInt(str);

		if((0 <= s) && (s < 86400)){
		int hour = s/(60*60);
		int minute = s%(60*60)/60;
		int second = s%(60*60)%60;
		System.out.println(hour + ":" + minute + ":" + second);
		}
	}catch(IOException e){
	System.out.println(e);
	}
}
}