import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());

        int s = n % 60;
        int tmpM = n / 60;
        int h = tmpM / 60;
        int m = tmpM % 60;

        System.out.println(h + ":" + m + ":" + s);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());

        int s = n % 60;
        int tmpM = n / 60;
        int h = tmpM / 60;
        int m = tmpM % 60;

        System.out.println(h + ":" + m + ":" + s);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());

        int s = n % 60;
        int tmpM = n / 60;
        int h = tmpM / 60;
        int m = tmpM % 60;

        System.out.println(h + ":" + m + ":" + s);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());

        int s = n % 60;
        int tmpM = n / 60;
        int h = tmpM / 60;
        int m = tmpM % 60;

        System.out.println(h + ":" + m + ":" + s);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.next()); n Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int s = n % 60; s n % 60 n 60 int tmpM = n / 60; tmpM n / 60 n 60 int h = tmpM / 60; h tmpM / 60 tmpM 60 int m = tmpM % 60; m tmpM % 60 tmpM 60 System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());

        int s = n % 60;
        int tmpM = n / 60;
        int h = tmpM / 60;
        int m = tmpM % 60;

        System.out.println(h + ":" + m + ":" + s);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());

        int s = n % 60;
        int tmpM = n / 60;
        int h = tmpM / 60;
        int m = tmpM % 60;

        System.out.println(h + ":" + m + ":" + s);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());

        int s = n % 60;
        int tmpM = n / 60;
        int h = tmpM / 60;
        int m = tmpM % 60;

        System.out.println(h + ":" + m + ":" + s);
    }
}