import java.io.*;
 
public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String s = br.readLine();
        int x = Integer.parseInt(s);
        int secound = x % 60;
        x = x / 60;
        int minutes = x % 60;
        x = x / 60;
        int hour = x;
         
         
        System.out.println(hour + ":" + minutes + ":" + secound);
    }
 
}
  import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String s = br.readLine();
        int x = Integer.parseInt(s);
        int secound = x % 60;
        x = x / 60;
        int minutes = x % 60;
        x = x / 60;
        int hour = x;
         
         
        System.out.println(hour + ":" + minutes + ":" + secound);
    }
 
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String s = br.readLine();
        int x = Integer.parseInt(s);
        int secound = x % 60;
        x = x / 60;
        int minutes = x % 60;
        x = x / 60;
        int hour = x;
         
         
        System.out.println(hour + ":" + minutes + ":" + secound);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String s = br.readLine();
        int x = Integer.parseInt(s);
        int secound = x % 60;
        x = x / 60;
        int minutes = x % 60;
        x = x / 60;
        int hour = x;
         
         
        System.out.println(hour + ":" + minutes + ":" + secound);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br int x = Integer.parseInt(s); x Integer.parseInt(s) Integer.parseInt Integer s int secound = x % 60; secound x % 60 x 60 x = x / 60 x x / 60 x 60 int minutes = x % 60; minutes x % 60 x 60 x = x / 60 x x / 60 x 60 int hour = x; hour x System.out.println(hour + ":" + minutes + ":" + secound) System.out.println System.out System System.out hour + ":" + minutes + ":" + secound ":" minutes hour + ":" + minutes + ":" + secound hour ":" minutes ":" secound String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String s = br.readLine();
        int x = Integer.parseInt(s);
        int secound = x % 60;
        x = x / 60;
        int minutes = x % 60;
        x = x / 60;
        int hour = x;
         
         
        System.out.println(hour + ":" + minutes + ":" + secound);
    }
 
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String s = br.readLine();
        int x = Integer.parseInt(s);
        int secound = x % 60;
        x = x / 60;
        int minutes = x % 60;
        x = x / 60;
        int hour = x;
         
         
        System.out.println(hour + ":" + minutes + ":" + secound);
    }
 
} Main
import java.io.*;
 
public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         
        String s = br.readLine();
        int x = Integer.parseInt(s);
        int secound = x % 60;
        x = x / 60;
        int minutes = x % 60;
        x = x / 60;
        int hour = x;
         
         
        System.out.println(hour + ":" + minutes + ":" + secound);
    }
 
}
 