import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int sec = scan.nextInt();
    int hour = sec / 3600;
    sec -= hour*3600;
    int min = sec / 60;
    sec -= min*60;

    System.out.println(hour+":"+min+":"+sec);

    }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int sec = scan.nextInt();
    int hour = sec / 3600;
    sec -= hour*3600;
    int min = sec / 60;
    sec -= min*60;

    System.out.println(hour+":"+min+":"+sec);

    }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int sec = scan.nextInt();
    int hour = sec / 3600;
    sec -= hour*3600;
    int min = sec / 60;
    sec -= min*60;

    System.out.println(hour+":"+min+":"+sec);

    } main {
    Scanner scan = new Scanner(System.in);

    int sec = scan.nextInt();
    int hour = sec / 3600;
    sec -= hour*3600;
    int min = sec / 60;
    sec -= min*60;

    System.out.println(hour+":"+min+":"+sec);

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int sec = scan.nextInt(); sec scan.nextInt() scan.nextInt scan int hour = sec / 3600; hour sec / 3600 sec 3600 sec -= hour*3600 sec hour*3600 hour 3600 int min = sec / 60; min sec / 60 sec 60 sec -= min*60 sec min*60 min 60 System.out.println(hour+":"+min+":"+sec) System.out.println System.out System System.out hour+":"+min+":"+sec ":" min hour+":"+min+":"+sec hour ":" min ":" sec String[] args args
import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int sec = scan.nextInt();
    int hour = sec / 3600;
    sec -= hour*3600;
    int min = sec / 60;
    sec -= min*60;

    System.out.println(hour+":"+min+":"+sec);

    }
}