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

public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		int i = Integer.parseInt(bf.readLine());
		int s = i % 60;
		int m = (i / 60) % 60;
		int h = i / 3600;
		System.out.println(h + ":" + m + ":" + s);
	}
} 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 {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		int i = Integer.parseInt(bf.readLine());
		int s = i % 60;
		int m = (i / 60) % 60;
		int h = i / 3600;
		System.out.println(h + ":" + m + ":" + s);
	}
} Main public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		int i = Integer.parseInt(bf.readLine());
		int s = i % 60;
		int m = (i / 60) % 60;
		int h = i / 3600;
		System.out.println(h + ":" + m + ":" + s);
	} main {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		int i = Integer.parseInt(bf.readLine());
		int s = i % 60;
		int m = (i / 60) % 60;
		int h = i / 3600;
		System.out.println(h + ":" + m + ":" + s);
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader bf = new BufferedReader(is); bf new BufferedReader(is) int i = Integer.parseInt(bf.readLine()); i Integer.parseInt(bf.readLine()) Integer.parseInt Integer bf.readLine() bf.readLine bf int s = i % 60; s i % 60 i 60 int m = (i / 60) % 60; m (i / 60) % 60 (i / 60) i 60 60 int h = i / 3600; h i / 3600 i 3600 System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		int i = Integer.parseInt(bf.readLine());
		int s = i % 60;
		int m = (i / 60) % 60;
		int h = i / 3600;
		System.out.println(h + ":" + m + ":" + s);
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		int i = Integer.parseInt(bf.readLine());
		int s = i % 60;
		int m = (i / 60) % 60;
		int h = i / 3600;
		System.out.println(h + ":" + m + ":" + s);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		int i = Integer.parseInt(bf.readLine());
		int s = i % 60;
		int m = (i / 60) % 60;
		int h = i / 3600;
		System.out.println(h + ":" + m + ":" + s);
	}
}