import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int inputtime = Integer.parseInt(line[0]);
            int hour = inputtime/3600;
            int minute = inputtime%3600/60;
            int second = inputtime%3600%60;
            System.out.println(hour+":"+minute+":"+second);
        }
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int inputtime = Integer.parseInt(line[0]);
            int hour = inputtime/3600;
            int minute = inputtime%3600/60;
            int second = inputtime%3600%60;
            System.out.println(hour+":"+minute+":"+second);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int inputtime = Integer.parseInt(line[0]);
            int hour = inputtime/3600;
            int minute = inputtime%3600/60;
            int second = inputtime%3600%60;
            System.out.println(hour+":"+minute+":"+second);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int inputtime = Integer.parseInt(line[0]);
            int hour = inputtime/3600;
            int minute = inputtime%3600/60;
            int second = inputtime%3600%60;
            System.out.println(hour+":"+minute+":"+second);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int inputtime = Integer.parseInt(line[0]);
            int hour = inputtime/3600;
            int minute = inputtime%3600/60;
            int second = inputtime%3600%60;
            System.out.println(hour+":"+minute+":"+second);
        } sc.hasNext() sc.hasNext sc {
            String[] line = sc.nextLine().split(" ");
            int inputtime = Integer.parseInt(line[0]);
            int hour = inputtime/3600;
            int minute = inputtime%3600/60;
            int second = inputtime%3600%60;
            System.out.println(hour+":"+minute+":"+second);
        } String[] line = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int inputtime = Integer.parseInt(line[0]); inputtime Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int hour = inputtime/3600; hour inputtime/3600 inputtime 3600 int minute = inputtime%3600/60; minute inputtime%3600/60 inputtime%3600 inputtime 3600 60 int second = inputtime%3600%60; second inputtime%3600%60 inputtime%3600%60 inputtime 3600 60 System.out.println(hour+":"+minute+":"+second) System.out.println System.out System System.out hour+":"+minute+":"+second ":" minute hour+":"+minute+":"+second hour ":" minute ":" second String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while( sc.hasNext() ){
            String[] line = sc.nextLine().split(" ");
            int inputtime = Integer.parseInt(line[0]);
            int hour = inputtime/3600;
            int minute = inputtime%3600/60;
            int second = inputtime%3600%60;
            System.out.println(hour+":"+minute+":"+second);
        }
    }
}