import java.util.*;
import java.io.*;

class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num1=0,num2=0,num3=0;
        String s=br.readLine();
        int x = Integer.parseInt(s);
        if(x>=0 && x<86400){
            num1 = x / 3600; //??????????±???????
            num2 = (x % 3600) / 60; //???????±???????
            num3 = x % 60; //?§?????±???????
            System.out.println(num1+":"+num2+":"+num3);
        }
        
    }
} import java.util.*; util.* java import java.io.*; io.* java class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num1=0,num2=0,num3=0;
        String s=br.readLine();
        int x = Integer.parseInt(s);
        if(x>=0 && x<86400){
            num1 = x / 3600; //??????????±???????
            num2 = (x % 3600) / 60; //???????±???????
            num3 = x % 60; //?§?????±???????
            System.out.println(num1+":"+num2+":"+num3);
        }
        
    }
} Main public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num1=0,num2=0,num3=0;
        String s=br.readLine();
        int x = Integer.parseInt(s);
        if(x>=0 && x<86400){
            num1 = x / 3600; //??????????±???????
            num2 = (x % 3600) / 60; //???????±???????
            num3 = x % 60; //?§?????±???????
            System.out.println(num1+":"+num2+":"+num3);
        }
        
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num1=0,num2=0,num3=0;
        String s=br.readLine();
        int x = Integer.parseInt(s);
        if(x>=0 && x<86400){
            num1 = x / 3600; //??????????±???????
            num2 = (x % 3600) / 60; //???????±???????
            num3 = x % 60; //?§?????±???????
            System.out.println(num1+":"+num2+":"+num3);
        }
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int num1=0 num1 0 num2=0 num2 0 num3=0; num3 0 String s=br.readLine(); s br.readLine() br.readLine br int x = Integer.parseInt(s); x Integer.parseInt(s) Integer.parseInt Integer s if(x>=0 && x<86400){
            num1 = x / 3600; //??????????±???????
            num2 = (x % 3600) / 60; //???????±???????
            num3 = x % 60; //?§?????±???????
            System.out.println(num1+":"+num2+":"+num3);
        } x>=0 && x<86400 x>=0 x 0 x<86400 x 86400 {
            num1 = x / 3600; //??????????±???????
            num2 = (x % 3600) / 60; //???????±???????
            num3 = x % 60; //?§?????±???????
            System.out.println(num1+":"+num2+":"+num3);
        } num1 = x / 3600 num1 x / 3600 x 3600 num2 = (x % 3600) / 60 num2 (x % 3600) / 60 (x % 3600) x 3600 60 num3 = x % 60 num3 x % 60 x 60 System.out.println(num1+":"+num2+":"+num3) System.out.println System.out System System.out num1+":"+num2+":"+num3 ":" num2 num1+":"+num2+":"+num3 num1 ":" num2 ":" num3 String args[] args
import java.util.*;
import java.io.*;

class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int num1=0,num2=0,num3=0;
        String s=br.readLine();
        int x = Integer.parseInt(s);
        if(x>=0 && x<86400){
            num1 = x / 3600; //??????????±???????
            num2 = (x % 3600) / 60; //???????±???????
            num3 = x % 60; //?§?????±???????
            System.out.println(num1+":"+num2+":"+num3);
        }
        
    }
}