import java.util.*;

public class Main {
    
    public static void main(String arg[]) {
        try{
            Scanner scan = new Scanner(System.in);
            int S = scan.nextInt();
            if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            }
            
        }catch(InputMismatchException ex){
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
} import java.util.*; util.* java public class Main {
    
    public static void main(String arg[]) {
        try{
            Scanner scan = new Scanner(System.in);
            int S = scan.nextInt();
            if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            }
            
        }catch(InputMismatchException ex){
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
} Main public static void main(String arg[]) {
        try{
            Scanner scan = new Scanner(System.in);
            int S = scan.nextInt();
            if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            }
            
        }catch(InputMismatchException ex){
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    } main {
        try{
            Scanner scan = new Scanner(System.in);
            int S = scan.nextInt();
            if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            }
            
        }catch(InputMismatchException ex){
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    } try{
            Scanner scan = new Scanner(System.in);
            int S = scan.nextInt();
            if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            }
            
        }catch(InputMismatchException ex){
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        } catch(InputMismatchException ex){
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        } InputMismatchException ex {
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        } System.out.println("1??????100?????§????????¶??°?????\?????????????????????") System.out.println System.out System System.out "1??????100?????§????????¶??°?????\?????????????????????" {
            Scanner scan = new Scanner(System.in);
            int S = scan.nextInt();
            if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            }
            
        } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int S = scan.nextInt(); S scan.nextInt() scan.nextInt scan if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            } 0<=S && S<86400 0<=S 0 S S<86400 S 86400 {
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            } int s = S%60; s S%60 S 60 int m = (S/60)%60; m (S/60)%60 (S/60) S 60 60 int h = S/3600; h S/3600 S 3600 System.out.println(h+":"+m+":"+s) System.out.println System.out System System.out h+":"+m+":"+s ":" m h+":"+m+":"+s h ":" m ":" s {
                System.out.println("1??????100?????§???????????§???");
            } System.out.println("1??????100?????§???????????§???") System.out.println System.out System System.out "1??????100?????§???????????§???" String arg[] arg public class Main {
    
    public static void main(String arg[]) {
        try{
            Scanner scan = new Scanner(System.in);
            int S = scan.nextInt();
            if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            }
            
        }catch(InputMismatchException ex){
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
} public class Main {
    
    public static void main(String arg[]) {
        try{
            Scanner scan = new Scanner(System.in);
            int S = scan.nextInt();
            if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            }
            
        }catch(InputMismatchException ex){
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
} Main
import java.util.*;

public class Main {
    
    public static void main(String arg[]) {
        try{
            Scanner scan = new Scanner(System.in);
            int S = scan.nextInt();
            if(0<=S && S<86400){
            int s = S%60;
            int m = (S/60)%60;
            int h = S/3600;
            System.out.println(h+":"+m+":"+s);
            }else{
                System.out.println("1??????100?????§???????????§???");
            }
            
        }catch(InputMismatchException ex){
            System.out.println("1??????100?????§????????¶??°?????\?????????????????????");
        }
    }
}