import java.util.Scanner;

public class Main {

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int tot = input.nextInt();
int hours = tot / 3600;
tot = tot - (hours*3600);
int mins = tot / 60;
tot = tot - (mins * 60);
System.out.println(hours+":"+mins+":"+tot);

}
} import java.util.Scanner; Scanner java.util public class Main {

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int tot = input.nextInt();
int hours = tot / 3600;
tot = tot - (hours*3600);
int mins = tot / 60;
tot = tot - (mins * 60);
System.out.println(hours+":"+mins+":"+tot);

}
} Main public static void main(String[] args){
Scanner input = new Scanner(System.in);
int tot = input.nextInt();
int hours = tot / 3600;
tot = tot - (hours*3600);
int mins = tot / 60;
tot = tot - (mins * 60);
System.out.println(hours+":"+mins+":"+tot);

} main {
Scanner input = new Scanner(System.in);
int tot = input.nextInt();
int hours = tot / 3600;
tot = tot - (hours*3600);
int mins = tot / 60;
tot = tot - (mins * 60);
System.out.println(hours+":"+mins+":"+tot);

} Scanner input = new Scanner(System.in); input new Scanner(System.in) int tot = input.nextInt(); tot input.nextInt() input.nextInt input int hours = tot / 3600; hours tot / 3600 tot 3600 tot = tot - (hours*3600) tot tot - (hours*3600) tot (hours*3600) hours 3600 int mins = tot / 60; mins tot / 60 tot 60 tot = tot - (mins * 60) tot tot - (mins * 60) tot (mins * 60) mins 60 System.out.println(hours+":"+mins+":"+tot) System.out.println System.out System System.out hours+":"+mins+":"+tot ":" mins hours+":"+mins+":"+tot hours ":" mins ":" tot String[] args args public class Main {

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int tot = input.nextInt();
int hours = tot / 3600;
tot = tot - (hours*3600);
int mins = tot / 60;
tot = tot - (mins * 60);
System.out.println(hours+":"+mins+":"+tot);

}
} public class Main {

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int tot = input.nextInt();
int hours = tot / 3600;
tot = tot - (hours*3600);
int mins = tot / 60;
tot = tot - (mins * 60);
System.out.println(hours+":"+mins+":"+tot);

}
} Main
import java.util.Scanner;

public class Main {

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int tot = input.nextInt();
int hours = tot / 3600;
tot = tot - (hours*3600);
int mins = tot / 60;
tot = tot - (mins * 60);
System.out.println(hours+":"+mins+":"+tot);

}
}
