import java.io.*;
public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(
				new InputStreamReader (System.in));
		String str=br.readLine();
		//String[] str = line.split(" ");
		int time=Integer.parseInt(str);
		int hour=time/3600;
		int min=(time-hour*3600)/60;
		int sec=time%60;
		System.out.println(hour+":"+min+":"+sec);
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(
				new InputStreamReader (System.in));
		String str=br.readLine();
		//String[] str = line.split(" ");
		int time=Integer.parseInt(str);
		int hour=time/3600;
		int min=(time-hour*3600)/60;
		int sec=time%60;
		System.out.println(hour+":"+min+":"+sec);
	}
} Main public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(
				new InputStreamReader (System.in));
		String str=br.readLine();
		//String[] str = line.split(" ");
		int time=Integer.parseInt(str);
		int hour=time/3600;
		int min=(time-hour*3600)/60;
		int sec=time%60;
		System.out.println(hour+":"+min+":"+sec);
	} main {
		BufferedReader br = new BufferedReader(
				new InputStreamReader (System.in));
		String str=br.readLine();
		//String[] str = line.split(" ");
		int time=Integer.parseInt(str);
		int hour=time/3600;
		int min=(time-hour*3600)/60;
		int sec=time%60;
		System.out.println(hour+":"+min+":"+sec);
	} 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 time=Integer.parseInt(str); time Integer.parseInt(str) Integer.parseInt Integer str int hour=time/3600; hour time/3600 time 3600 int min=(time-hour*3600)/60; min (time-hour*3600)/60 (time-hour*3600) time hour*3600 hour 3600 60 int sec=time%60; sec time%60 time 60 System.out.println(hour+":"+min+":"+sec) System.out.println System.out System System.out hour+":"+min+":"+sec ":" min hour+":"+min+":"+sec hour ":" min ":" sec String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(
				new InputStreamReader (System.in));
		String str=br.readLine();
		//String[] str = line.split(" ");
		int time=Integer.parseInt(str);
		int hour=time/3600;
		int min=(time-hour*3600)/60;
		int sec=time%60;
		System.out.println(hour+":"+min+":"+sec);
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(
				new InputStreamReader (System.in));
		String str=br.readLine();
		//String[] str = line.split(" ");
		int time=Integer.parseInt(str);
		int hour=time/3600;
		int min=(time-hour*3600)/60;
		int sec=time%60;
		System.out.println(hour+":"+min+":"+sec);
	}
} Main
import java.io.*;
public class Main {
	public static void main(String[] args) throws Exception{
		BufferedReader br = new BufferedReader(
				new InputStreamReader (System.in));
		String str=br.readLine();
		//String[] str = line.split(" ");
		int time=Integer.parseInt(str);
		int hour=time/3600;
		int min=(time-hour*3600)/60;
		int sec=time%60;
		System.out.println(hour+":"+min+":"+sec);
	}
}