import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.parseInt(br.readLine());
      int h = x/3600;
      int m = (x%3600)/60;
      int s = ((x%3600)%60);
      System.out.println(h + ":" + m + ":" + s);
    } catch(IOException e){
      System.err.println(e.toString());
    }
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.parseInt(br.readLine());
      int h = x/3600;
      int m = (x%3600)/60;
      int s = ((x%3600)%60);
      System.out.println(h + ":" + m + ":" + s);
    } catch(IOException e){
      System.err.println(e.toString());
    }
  }
} Main public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.parseInt(br.readLine());
      int h = x/3600;
      int m = (x%3600)/60;
      int s = ((x%3600)%60);
      System.out.println(h + ":" + m + ":" + s);
    } catch(IOException e){
      System.err.println(e.toString());
    }
  } main {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.parseInt(br.readLine());
      int h = x/3600;
      int m = (x%3600)/60;
      int s = ((x%3600)%60);
      System.out.println(h + ":" + m + ":" + s);
    } catch(IOException e){
      System.err.println(e.toString());
    }
  } try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.parseInt(br.readLine());
      int h = x/3600;
      int m = (x%3600)/60;
      int s = ((x%3600)%60);
      System.out.println(h + ":" + m + ":" + s);
    } catch(IOException e){
      System.err.println(e.toString());
    } catch(IOException e){
      System.err.println(e.toString());
    } IOException e {
      System.err.println(e.toString());
    } System.err.println(e.toString()) System.err.println System.err System System.err e.toString() e.toString e {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.parseInt(br.readLine());
      int h = x/3600;
      int m = (x%3600)/60;
      int s = ((x%3600)%60);
      System.out.println(h + ":" + m + ":" + s);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int x = Integer.parseInt(br.readLine()); x Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int h = x/3600; h x/3600 x 3600 int m = (x%3600)/60; m (x%3600)/60 (x%3600) x 3600 60 int s = ((x%3600)%60); s ((x%3600)%60) (x%3600) x 3600 60 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.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int x = Integer.parseInt(br.readLine());
      int h = x/3600;
      int m = (x%3600)/60;
      int s = ((x%3600)%60);
      System.out.println(h + ":" + m + ":" + s);
    } catch(IOException e){
      System.err.println(e.toString());
    }
  }
}
