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

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		int a = Integer.parseInt(s);
		System.out.print(a/3600+":");
		int b = a % 3600;
		System.out.print(b/60+":");
		System.out.println(b%60);
		
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		int a = Integer.parseInt(s);
		System.out.print(a/3600+":");
		int b = a % 3600;
		System.out.print(b/60+":");
		System.out.println(b%60);
		
	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		int a = Integer.parseInt(s);
		System.out.print(a/3600+":");
		int b = a % 3600;
		System.out.print(b/60+":");
		System.out.println(b%60);
		
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		int a = Integer.parseInt(s);
		System.out.print(a/3600+":");
		int b = a % 3600;
		System.out.print(b/60+":");
		System.out.println(b%60);
		
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String s = new String(in.readLine()); s new String(in.readLine()) int a = Integer.parseInt(s); a Integer.parseInt(s) Integer.parseInt Integer s System.out.print(a/3600+":") System.out.print System.out System System.out a/3600+":" a/3600 a 3600 ":" int b = a % 3600; b a % 3600 a 3600 System.out.print(b/60+":") System.out.print System.out System System.out b/60+":" b/60 b 60 ":" System.out.println(b%60) System.out.println System.out System System.out b%60 b 60 String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		int a = Integer.parseInt(s);
		System.out.print(a/3600+":");
		int b = a % 3600;
		System.out.print(b/60+":");
		System.out.println(b%60);
		
	}

}