import java.io.*;
 
class Main{
    public static void main (String[ ] args) throws Exception{
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        String str = br.readLine();

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

        int a = Integer.parseInt(str);
        
        System.out.println((a/3600) + ":" + (a%3600/60) + ":" +(a%3600%60));
    }
} Main public static void main (String[ ] args) throws Exception{
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        String str = br.readLine();

        int a = Integer.parseInt(str);
        
        System.out.println((a/3600) + ":" + (a%3600/60) + ":" +(a%3600%60));
    } main {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        String str = br.readLine();

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

        int a = Integer.parseInt(str);
        
        System.out.println((a/3600) + ":" + (a%3600/60) + ":" +(a%3600%60));
    }
}