import java.util.Scanner;

class Watch {
    static void run() {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int m = s / 60;
        int ss = s % 60;
        int h = m / 60;
        int mm = m % 60;
        System.out.printf("%d:%d:%d%n", h, mm, ss);
    }
}
public class Main {
    public static void main(String[] args) {
        Watch.run();
    }
} import java.util.Scanner; Scanner java.util class Watch {
    static void run() {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int m = s / 60;
        int ss = s % 60;
        int h = m / 60;
        int mm = m % 60;
        System.out.printf("%d:%d:%d%n", h, mm, ss);
    }
} Watch static void run() {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int m = s / 60;
        int ss = s % 60;
        int h = m / 60;
        int mm = m % 60;
        System.out.printf("%d:%d:%d%n", h, mm, ss);
    } run {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int m = s / 60;
        int ss = s % 60;
        int h = m / 60;
        int mm = m % 60;
        System.out.printf("%d:%d:%d%n", h, mm, ss);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc int m = s / 60; m s / 60 s 60 int ss = s % 60; ss s % 60 s 60 int h = m / 60; h m / 60 m 60 int mm = m % 60; mm m % 60 m 60 System.out.printf("%d:%d:%d%n", h, mm, ss) System.out.printf System.out System System.out "%d:%d:%d%n" h mm ss public class Main {
    public static void main(String[] args) {
        Watch.run();
    }
} Main public static void main(String[] args) {
        Watch.run();
    } main {
        Watch.run();
    } Watch.run() Watch.run Watch String[] args args public class Main {
    public static void main(String[] args) {
        Watch.run();
    }
} public class Main {
    public static void main(String[] args) {
        Watch.run();
    }
} Main
import java.util.Scanner;

class Watch {
    static void run() {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        int m = s / 60;
        int ss = s % 60;
        int h = m / 60;
        int mm = m % 60;
        System.out.printf("%d:%d:%d%n", h, mm, ss);
    }
}
public class Main {
    public static void main(String[] args) {
        Watch.run();
    }
}