import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner S = new Scanner(System.in);
      int time= S.nextInt();
      int h = time/ 3600;
      int m = (time - h*3600)/60;
      int s =  time % 60;
      System.out.printf("%d:%d:%d\n", h,m,s);
      }
 } import java.util.Scanner; Scanner java.util class Main
 {
   public static void main(String[] args)
      {
      Scanner S = new Scanner(System.in);
      int time= S.nextInt();
      int h = time/ 3600;
      int m = (time - h*3600)/60;
      int s =  time % 60;
      System.out.printf("%d:%d:%d\n", h,m,s);
      }
 } Main public static void main(String[] args)
      {
      Scanner S = new Scanner(System.in);
      int time= S.nextInt();
      int h = time/ 3600;
      int m = (time - h*3600)/60;
      int s =  time % 60;
      System.out.printf("%d:%d:%d\n", h,m,s);
      } main {
      Scanner S = new Scanner(System.in);
      int time= S.nextInt();
      int h = time/ 3600;
      int m = (time - h*3600)/60;
      int s =  time % 60;
      System.out.printf("%d:%d:%d\n", h,m,s);
      } Scanner S = new Scanner(System.in); S new Scanner(System.in) int time= S.nextInt(); time S.nextInt() S.nextInt S int h = time/ 3600; h time/ 3600 time 3600 int m = (time - h*3600)/60; m (time - h*3600)/60 (time - h*3600) time h*3600 h 3600 60 int s =  time % 60; s time % 60 time 60 System.out.printf("%d:%d:%d\n", h,m,s) System.out.printf System.out System System.out "%d:%d:%d\n" h m s String[] args args
import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner S = new Scanner(System.in);
      int time= S.nextInt();
      int h = time/ 3600;
      int m = (time - h*3600)/60;
      int s =  time % 60;
      System.out.printf("%d:%d:%d\n", h,m,s);
      }
 }
