import java.util.NoSuchElementException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int s = Integer.parseInt(sc.nextLine());
            if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            }
            int h = s / (60 * 60);
            int r = s % (60 * 60);
            int m = r / 60;
            r = s % 60;
            System.out.printf("%d:%d:%d\n", h, m, r);
        } catch (NoSuchElementException | NumberFormatException e) {
            System.out.println(e);
        }
    }
}
 import java.util.NoSuchElementException; NoSuchElementException java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int s = Integer.parseInt(sc.nextLine());
            if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            }
            int h = s / (60 * 60);
            int r = s % (60 * 60);
            int m = r / 60;
            r = s % 60;
            System.out.printf("%d:%d:%d\n", h, m, r);
        } catch (NoSuchElementException | NumberFormatException e) {
            System.out.println(e);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int s = Integer.parseInt(sc.nextLine());
            if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            }
            int h = s / (60 * 60);
            int r = s % (60 * 60);
            int m = r / 60;
            r = s % 60;
            System.out.printf("%d:%d:%d\n", h, m, r);
        } catch (NoSuchElementException | NumberFormatException e) {
            System.out.println(e);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        try {
            int s = Integer.parseInt(sc.nextLine());
            if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            }
            int h = s / (60 * 60);
            int r = s % (60 * 60);
            int m = r / 60;
            r = s % 60;
            System.out.printf("%d:%d:%d\n", h, m, r);
        } catch (NoSuchElementException | NumberFormatException e) {
            System.out.println(e);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
            int s = Integer.parseInt(sc.nextLine());
            if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            }
            int h = s / (60 * 60);
            int r = s % (60 * 60);
            int m = r / 60;
            r = s % 60;
            System.out.printf("%d:%d:%d\n", h, m, r);
        } catch (NoSuchElementException | NumberFormatException e) {
            System.out.println(e);
        } catch (NoSuchElementException | NumberFormatException e) {
            System.out.println(e);
        } NoSuchElementException | NumberFormatException e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {
            int s = Integer.parseInt(sc.nextLine());
            if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            }
            int h = s / (60 * 60);
            int r = s % (60 * 60);
            int m = r / 60;
            r = s % 60;
            System.out.printf("%d:%d:%d\n", h, m, r);
        } int s = Integer.parseInt(sc.nextLine()); s Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            } s >= 86400 || s < 0 s >= 86400 s 86400 s < 0 s 0 {
                System.out.println("Input is incorrect");
                return;
            } System.out.println("Input is incorrect") System.out.println System.out System System.out "Input is incorrect" return; int h = s / (60 * 60); h s / (60 * 60) s (60 * 60) 60 60 int r = s % (60 * 60); r s % (60 * 60) s (60 * 60) 60 60 int m = r / 60; m r / 60 r 60 r = s % 60 r s % 60 s 60 System.out.printf("%d:%d:%d\n", h, m, r) System.out.printf System.out System System.out "%d:%d:%d\n" h m r String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int s = Integer.parseInt(sc.nextLine());
            if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            }
            int h = s / (60 * 60);
            int r = s % (60 * 60);
            int m = r / 60;
            r = s % 60;
            System.out.printf("%d:%d:%d\n", h, m, r);
        } catch (NoSuchElementException | NumberFormatException e) {
            System.out.println(e);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int s = Integer.parseInt(sc.nextLine());
            if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            }
            int h = s / (60 * 60);
            int r = s % (60 * 60);
            int m = r / 60;
            r = s % 60;
            System.out.printf("%d:%d:%d\n", h, m, r);
        } catch (NoSuchElementException | NumberFormatException e) {
            System.out.println(e);
        }
    }
} Main
import java.util.NoSuchElementException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            int s = Integer.parseInt(sc.nextLine());
            if (s >= 86400 || s < 0) {
                System.out.println("Input is incorrect");
                return;
            }
            int h = s / (60 * 60);
            int r = s % (60 * 60);
            int m = r / 60;
            r = s % 60;
            System.out.printf("%d:%d:%d\n", h, m, r);
        } catch (NoSuchElementException | NumberFormatException e) {
            System.out.println(e);
        }
    }
}

