import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int S = scan.nextInt();
    int h, m, s;
    h = S / (60 * 60);
    S = S % (60 * 60);
    m = S / 60;
    S = S % 60;
    s = S;
    System.out.println(h + ":" + m + ":" + s);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int S = scan.nextInt();
    int h, m, s;
    h = S / (60 * 60);
    S = S % (60 * 60);
    m = S / 60;
    S = S % 60;
    s = S;
    System.out.println(h + ":" + m + ":" + s);
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int S = scan.nextInt();
    int h, m, s;
    h = S / (60 * 60);
    S = S % (60 * 60);
    m = S / 60;
    S = S % 60;
    s = S;
    System.out.println(h + ":" + m + ":" + s);
  } main {
    Scanner scan = new Scanner(System.in);
    int S = scan.nextInt();
    int h, m, s;
    h = S / (60 * 60);
    S = S % (60 * 60);
    m = S / 60;
    S = S % 60;
    s = S;
    System.out.println(h + ":" + m + ":" + s);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int S = scan.nextInt(); S scan.nextInt() scan.nextInt scan int h h m m s; s h = S / (60 * 60) h S / (60 * 60) S (60 * 60) 60 60 S = S % (60 * 60) S S % (60 * 60) S (60 * 60) 60 60 m = S / 60 m S / 60 S 60 S = S % 60 S S % 60 S 60 s = S s S 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
import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int S = scan.nextInt();
    int h, m, s;
    h = S / (60 * 60);
    S = S % (60 * 60);
    m = S / 60;
    S = S % 60;
    s = S;
    System.out.println(h + ":" + m + ":" + s);
  }
}