import java.io.*;
class Main{
   public static void main(String[] args)throws java.io.IOException{
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        
      String tmp = input.readLine();
      int S = Integer.parseInt(tmp);
  
      int h=0,m=0,s=0;
  
        
      s = S%60;
      m = (S/60)%60;
      h = S/3600;
  
      System.out.println(h+":"+m+":"+s);
    }
} import java.io.*; io.* java class Main{
   public static void main(String[] args)throws java.io.IOException{
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        
      String tmp = input.readLine();
      int S = Integer.parseInt(tmp);
  
      int h=0,m=0,s=0;
  
        
      s = S%60;
      m = (S/60)%60;
      h = S/3600;
  
      System.out.println(h+":"+m+":"+s);
    }
} Main public static void main(String[] args)throws java.io.IOException{
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        
      String tmp = input.readLine();
      int S = Integer.parseInt(tmp);
  
      int h=0,m=0,s=0;
  
        
      s = S%60;
      m = (S/60)%60;
      h = S/3600;
  
      System.out.println(h+":"+m+":"+s);
    } main {
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        
      String tmp = input.readLine();
      int S = Integer.parseInt(tmp);
  
      int h=0,m=0,s=0;
  
        
      s = S%60;
      m = (S/60)%60;
      h = S/3600;
  
      System.out.println(h+":"+m+":"+s);
    } BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) String tmp = input.readLine(); tmp input.readLine() input.readLine input int S = Integer.parseInt(tmp); S Integer.parseInt(tmp) Integer.parseInt Integer tmp int h=0 h 0 m=0 m 0 s=0; s 0 s = S%60 s S%60 S 60 m = (S/60)%60 m (S/60)%60 (S/60) S 60 60 h = S/3600 h S/3600 S 3600 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.io.*;
class Main{
   public static void main(String[] args)throws java.io.IOException{
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        
      String tmp = input.readLine();
      int S = Integer.parseInt(tmp);
  
      int h=0,m=0,s=0;
  
        
      s = S%60;
      m = (S/60)%60;
      h = S/3600;
  
      System.out.println(h+":"+m+":"+s);
    }
}