---------------------------------------
---------------------------------------
import java.util.*;
public class Main {
public static void main(String[] args) {
int n = new Scanner(System.in).nextInt();
int i,j,k;
i = n/3600;
j = (n%3600)/60;
k = (n%3600)%60;
System.out.println(i+":"+j+":"+k);
}
}