import java.util.Scanner;

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

      int b;

      int c;

      int d;

          b = a % 60;

          c = a % 3600 / 60;

          d = a /3600;

 
       System.out.println(d+":"+c+":"+b);
  }
}
      import java.util.Scanner; Scanner java.util class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
      int a = scan.nextInt();

      int b;

      int c;

      int d;

          b = a % 60;

          c = a % 3600 / 60;

          d = a /3600;

 
       System.out.println(d+":"+c+":"+b);
  }
} Main public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
      int a = scan.nextInt();

      int b;

      int c;

      int d;

          b = a % 60;

          c = a % 3600 / 60;

          d = a /3600;

 
       System.out.println(d+":"+c+":"+b);
  } main {
    Scanner scan = new Scanner(System.in);
      int a = scan.nextInt();

      int b;

      int c;

      int d;

          b = a % 60;

          c = a % 3600 / 60;

          d = a /3600;

 
       System.out.println(d+":"+c+":"+b);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b; b int c; c int d; d b = a % 60 b a % 60 a 60 c = a % 3600 / 60 c a % 3600 / 60 a % 3600 a 3600 60 d = a /3600 d a /3600 a 3600 System.out.println(d+":"+c+":"+b) System.out.println System.out System System.out d+":"+c+":"+b ":" c d+":"+c+":"+b d ":" c ":" b String args[] args
import java.util.Scanner;

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

      int b;

      int c;

      int d;

          b = a % 60;

          c = a % 3600 / 60;

          d = a /3600;

 
       System.out.println(d+":"+c+":"+b);
  }
}
     
