import java.io.*;

class Main{
 public static void main(String[] arg) throws IOException{
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  String str = br.readLine();

  int x = Integer.parseInt(str), h=x/3600, m, s;
  x %= 3600;
  m = x/60;
  x %= 60;
  s = x;

  System.out.println(h + ":" + m + ":" + s);
 }
} import java.io.*; io.* java class Main{
 public static void main(String[] arg) throws IOException{
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  String str = br.readLine();

  int x = Integer.parseInt(str), h=x/3600, m, s;
  x %= 3600;
  m = x/60;
  x %= 60;
  s = x;

  System.out.println(h + ":" + m + ":" + s);
 }
} Main public static void main(String[] arg) throws IOException{
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  String str = br.readLine();

  int x = Integer.parseInt(str), h=x/3600, m, s;
  x %= 3600;
  m = x/60;
  x %= 60;
  s = x;

  System.out.println(h + ":" + m + ":" + s);
 } main {
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  String str = br.readLine();

  int x = Integer.parseInt(str), h=x/3600, m, s;
  x %= 3600;
  m = x/60;
  x %= 60;
  s = x;

  System.out.println(h + ":" + m + ":" + s);
 } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int x = Integer.parseInt(str) x Integer.parseInt(str) Integer.parseInt Integer str h=x/3600 h x/3600 x 3600 m m s; s x %= 3600 x 3600 m = x/60 m x/60 x 60 x %= 60 x 60 s = x s x 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[] arg arg
import java.io.*;

class Main{
 public static void main(String[] arg) throws IOException{
  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  String str = br.readLine();

  int x = Integer.parseInt(str), h=x/3600, m, s;
  x %= 3600;
  m = x/60;
  x %= 60;
  s = x;

  System.out.println(h + ":" + m + ":" + s);
 }
}