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 seconds = Integer.parseInt(br.readLine());

		int hh = seconds / (60 * 60);
		int mm = seconds % (60 * 60) / 60;
		int ss = seconds % (60 * 60) % 60;

		System.out.println(hh + ":" + mm + ":" + ss);
	}
} 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 seconds = Integer.parseInt(br.readLine());

		int hh = seconds / (60 * 60);
		int mm = seconds % (60 * 60) / 60;
		int ss = seconds % (60 * 60) % 60;

		System.out.println(hh + ":" + mm + ":" + ss);
	}
} Main public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int seconds = Integer.parseInt(br.readLine());

		int hh = seconds / (60 * 60);
		int mm = seconds % (60 * 60) / 60;
		int ss = seconds % (60 * 60) % 60;

		System.out.println(hh + ":" + mm + ":" + ss);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int seconds = Integer.parseInt(br.readLine());

		int hh = seconds / (60 * 60);
		int mm = seconds % (60 * 60) / 60;
		int ss = seconds % (60 * 60) % 60;

		System.out.println(hh + ":" + mm + ":" + ss);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int seconds = Integer.parseInt(br.readLine()); seconds Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int hh = seconds / (60 * 60); hh seconds / (60 * 60) seconds (60 * 60) 60 60 int mm = seconds % (60 * 60) / 60; mm seconds % (60 * 60) / 60 seconds % (60 * 60) seconds (60 * 60) 60 60 60 int ss = seconds % (60 * 60) % 60; ss seconds % (60 * 60) % 60 seconds % (60 * 60) % 60 seconds (60 * 60) 60 60 60 System.out.println(hh + ":" + mm + ":" + ss) System.out.println System.out System System.out hh + ":" + mm + ":" + ss ":" mm hh + ":" + mm + ":" + ss hh ":" mm ":" ss String args[] args public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int seconds = Integer.parseInt(br.readLine());

		int hh = seconds / (60 * 60);
		int mm = seconds % (60 * 60) / 60;
		int ss = seconds % (60 * 60) % 60;

		System.out.println(hh + ":" + mm + ":" + ss);
	}
} public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int seconds = Integer.parseInt(br.readLine());

		int hh = seconds / (60 * 60);
		int mm = seconds % (60 * 60) / 60;
		int ss = seconds % (60 * 60) % 60;

		System.out.println(hh + ":" + mm + ":" + ss);
	}
} 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 seconds = Integer.parseInt(br.readLine());

		int hh = seconds / (60 * 60);
		int mm = seconds % (60 * 60) / 60;
		int ss = seconds % (60 * 60) % 60;

		System.out.println(hh + ":" + mm + ":" + ss);
	}
}