import java.io.*;
public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        int time = Integer.parseInt(line);
        int sec=0,min=0,hour=0;
        
        if (time>=3600) {
            hour=time/3600;
            time=time%3600;
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else if (time>=60) {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else{
            System.out.println(hour+":"+min+":"+sec);
        }
    }
} 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 line=br.readLine();
        int time = Integer.parseInt(line);
        int sec=0,min=0,hour=0;
        
        if (time>=3600) {
            hour=time/3600;
            time=time%3600;
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else if (time>=60) {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else{
            System.out.println(hour+":"+min+":"+sec);
        }
    }
} Main public static void main(String[] args)throws IOException {
        BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        int time = Integer.parseInt(line);
        int sec=0,min=0,hour=0;
        
        if (time>=3600) {
            hour=time/3600;
            time=time%3600;
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else if (time>=60) {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else{
            System.out.println(hour+":"+min+":"+sec);
        }
    } main {
        BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        int time = Integer.parseInt(line);
        int sec=0,min=0,hour=0;
        
        if (time>=3600) {
            hour=time/3600;
            time=time%3600;
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else if (time>=60) {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else{
            System.out.println(hour+":"+min+":"+sec);
        }
    } BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line=br.readLine(); line br.readLine() br.readLine br int time = Integer.parseInt(line); time Integer.parseInt(line) Integer.parseInt Integer line int sec=0 sec 0 min=0 min 0 hour=0; hour 0 if (time>=3600) {
            hour=time/3600;
            time=time%3600;
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else if (time>=60) {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else{
            System.out.println(hour+":"+min+":"+sec);
        } time>=3600 time 3600 {
            hour=time/3600;
            time=time%3600;
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        } hour=time/3600 hour time/3600 time 3600 time=time%3600 time time%3600 time 3600 min=time/60 min time/60 time 60 sec=time%60 sec time%60 time 60 System.out.println(hour+":"+min+":"+sec) System.out.println System.out System System.out hour+":"+min+":"+sec ":" min hour+":"+min+":"+sec hour ":" min ":" sec if (time>=60) {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else{
            System.out.println(hour+":"+min+":"+sec);
        } time>=60 time 60 {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        } min=time/60 min time/60 time 60 sec=time%60 sec time%60 time 60 System.out.println(hour+":"+min+":"+sec) System.out.println System.out System System.out hour+":"+min+":"+sec ":" min hour+":"+min+":"+sec hour ":" min ":" sec {
            System.out.println(hour+":"+min+":"+sec);
        } System.out.println(hour+":"+min+":"+sec) System.out.println System.out System System.out hour+":"+min+":"+sec ":" min hour+":"+min+":"+sec hour ":" min ":" sec String[] args args public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        int time = Integer.parseInt(line);
        int sec=0,min=0,hour=0;
        
        if (time>=3600) {
            hour=time/3600;
            time=time%3600;
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else if (time>=60) {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else{
            System.out.println(hour+":"+min+":"+sec);
        }
    }
} public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        int time = Integer.parseInt(line);
        int sec=0,min=0,hour=0;
        
        if (time>=3600) {
            hour=time/3600;
            time=time%3600;
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else if (time>=60) {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else{
            System.out.println(hour+":"+min+":"+sec);
        }
    }
} Main
import java.io.*;
public class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
        String line=br.readLine();
        int time = Integer.parseInt(line);
        int sec=0,min=0,hour=0;
        
        if (time>=3600) {
            hour=time/3600;
            time=time%3600;
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else if (time>=60) {
            min=time/60;
            sec=time%60;
            System.out.println(hour+":"+min+":"+sec);
        }
        else{
            System.out.println(hour+":"+min+":"+sec);
        }
    }
}