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

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

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