import java.io.*;
class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String line = r.readLine();    
        Long s = Long.parseLong(line);
        if ((0<=s) & (s<=86400)){
            long hour = s != 0 ? s / (60 * 60) : 0;
            long zan = s - hour * 60 * 60;
            long minute = zan != 0 ? zan / 60 :0;
            zan = zan - minute * 60;       
            System.out.println(hour+":"+minute+":"+zan);
        }
        r.close();
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String line = r.readLine();    
        Long s = Long.parseLong(line);
        if ((0<=s) & (s<=86400)){
            long hour = s != 0 ? s / (60 * 60) : 0;
            long zan = s - hour * 60 * 60;
            long minute = zan != 0 ? zan / 60 :0;
            zan = zan - minute * 60;       
            System.out.println(hour+":"+minute+":"+zan);
        }
        r.close();
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String line = r.readLine();    
        Long s = Long.parseLong(line);
        if ((0<=s) & (s<=86400)){
            long hour = s != 0 ? s / (60 * 60) : 0;
            long zan = s - hour * 60 * 60;
            long minute = zan != 0 ? zan / 60 :0;
            zan = zan - minute * 60;       
            System.out.println(hour+":"+minute+":"+zan);
        }
        r.close();
    } main {
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String line = r.readLine();    
        Long s = Long.parseLong(line);
        if ((0<=s) & (s<=86400)){
            long hour = s != 0 ? s / (60 * 60) : 0;
            long zan = s - hour * 60 * 60;
            long minute = zan != 0 ? zan / 60 :0;
            zan = zan - minute * 60;       
            System.out.println(hour+":"+minute+":"+zan);
        }
        r.close();
    } BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1); r new BufferedReader(new InputStreamReader(System.in), 1) String line = r.readLine(); line r.readLine() r.readLine r Long s = Long.parseLong(line); s Long.parseLong(line) Long.parseLong Long line if ((0<=s) & (s<=86400)){
            long hour = s != 0 ? s / (60 * 60) : 0;
            long zan = s - hour * 60 * 60;
            long minute = zan != 0 ? zan / 60 :0;
            zan = zan - minute * 60;       
            System.out.println(hour+":"+minute+":"+zan);
        } (0<=s) & (s<=86400) (0<=s) 0 s (s<=86400) s 86400 {
            long hour = s != 0 ? s / (60 * 60) : 0;
            long zan = s - hour * 60 * 60;
            long minute = zan != 0 ? zan / 60 :0;
            zan = zan - minute * 60;       
            System.out.println(hour+":"+minute+":"+zan);
        } long hour = s != 0 ? s / (60 * 60) : 0; hour s != 0 ? s / (60 * 60) : 0 s != 0 s 0 s / (60 * 60) s (60 * 60) 60 60 0 long zan = s - hour * 60 * 60; zan s - hour * 60 * 60 s hour * 60 * 60 hour * 60 * 60 hour 60 60 long minute = zan != 0 ? zan / 60 :0; minute zan != 0 ? zan / 60 :0 zan != 0 zan 0 zan / 60 zan 60 0 zan = zan - minute * 60 zan zan - minute * 60 zan minute * 60 minute 60 System.out.println(hour+":"+minute+":"+zan) System.out.println System.out System System.out hour+":"+minute+":"+zan ":" minute hour+":"+minute+":"+zan hour ":" minute ":" zan r.close() r.close r String[] args args
import java.io.*;
class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader r =
         new BufferedReader(new InputStreamReader(System.in), 1);
         
        String line = r.readLine();    
        Long s = Long.parseLong(line);
        if ((0<=s) & (s<=86400)){
            long hour = s != 0 ? s / (60 * 60) : 0;
            long zan = s - hour * 60 * 60;
            long minute = zan != 0 ? zan / 60 :0;
            zan = zan - minute * 60;       
            System.out.println(hour+":"+minute+":"+zan);
        }
        r.close();
    }
}