import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        long time = sc.nextLong();
        
        long sec = time % 60;
        
        long minuteAll = time / 60;
        long minute = minuteAll % 60;
        long hour = minuteAll / 60;
        
        System.out.println(hour + ":" + minute + ":" + sec);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        long time = sc.nextLong();
        
        long sec = time % 60;
        
        long minuteAll = time / 60;
        long minute = minuteAll % 60;
        long hour = minuteAll / 60;
        
        System.out.println(hour + ":" + minute + ":" + sec);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        long time = sc.nextLong();
        
        long sec = time % 60;
        
        long minuteAll = time / 60;
        long minute = minuteAll % 60;
        long hour = minuteAll / 60;
        
        System.out.println(hour + ":" + minute + ":" + sec);
    } main {
        Scanner sc = new Scanner(System.in);
        
        long time = sc.nextLong();
        
        long sec = time % 60;
        
        long minuteAll = time / 60;
        long minute = minuteAll % 60;
        long hour = minuteAll / 60;
        
        System.out.println(hour + ":" + minute + ":" + sec);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long time = sc.nextLong(); time sc.nextLong() sc.nextLong sc long sec = time % 60; sec time % 60 time 60 long minuteAll = time / 60; minuteAll time / 60 time 60 long minute = minuteAll % 60; minute minuteAll % 60 minuteAll 60 long hour = minuteAll / 60; hour minuteAll / 60 minuteAll 60 System.out.println(hour + ":" + minute + ":" + sec) System.out.println System.out System System.out hour + ":" + minute + ":" + sec ":" minute hour + ":" + minute + ":" + sec hour ":" minute ":" sec String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        long time = sc.nextLong();
        
        long sec = time % 60;
        
        long minuteAll = time / 60;
        long minute = minuteAll % 60;
        long hour = minuteAll / 60;
        
        System.out.println(hour + ":" + minute + ":" + sec);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        long time = sc.nextLong();
        
        long sec = time % 60;
        
        long minuteAll = time / 60;
        long minute = minuteAll % 60;
        long hour = minuteAll / 60;
        
        System.out.println(hour + ":" + minute + ":" + sec);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        long time = sc.nextLong();
        
        long sec = time % 60;
        
        long minuteAll = time / 60;
        long minute = minuteAll % 60;
        long hour = minuteAll / 60;
        
        System.out.println(hour + ":" + minute + ":" + sec);
    }
}