
import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        int sec = a.nextInt();
        if (sec >= 0 && sec < 86400){
            int hours = sec / 3600;
            int minutes = (sec % 3600) / 60;
            int second = (sec % 3600) % 60;

            System.out.println(hours + ":" + minutes + ":" + second);
        }else{
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        int sec = a.nextInt();
        if (sec >= 0 && sec < 86400){
            int hours = sec / 3600;
            int minutes = (sec % 3600) / 60;
            int second = (sec % 3600) % 60;

            System.out.println(hours + ":" + minutes + ":" + second);
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        int sec = a.nextInt();
        if (sec >= 0 && sec < 86400){
            int hours = sec / 3600;
            int minutes = (sec % 3600) / 60;
            int second = (sec % 3600) % 60;

            System.out.println(hours + ":" + minutes + ":" + second);
        }else{
            System.out.println("No");
        }
    } main {
        Scanner a = new Scanner(System.in);
        int sec = a.nextInt();
        if (sec >= 0 && sec < 86400){
            int hours = sec / 3600;
            int minutes = (sec % 3600) / 60;
            int second = (sec % 3600) % 60;

            System.out.println(hours + ":" + minutes + ":" + second);
        }else{
            System.out.println("No");
        }
    } Scanner a = new Scanner(System.in); a new Scanner(System.in) int sec = a.nextInt(); sec a.nextInt() a.nextInt a if (sec >= 0 && sec < 86400){
            int hours = sec / 3600;
            int minutes = (sec % 3600) / 60;
            int second = (sec % 3600) % 60;

            System.out.println(hours + ":" + minutes + ":" + second);
        }else{
            System.out.println("No");
        } sec >= 0 && sec < 86400 sec >= 0 sec 0 sec < 86400 sec 86400 {
            int hours = sec / 3600;
            int minutes = (sec % 3600) / 60;
            int second = (sec % 3600) % 60;

            System.out.println(hours + ":" + minutes + ":" + second);
        } int hours = sec / 3600; hours sec / 3600 sec 3600 int minutes = (sec % 3600) / 60; minutes (sec % 3600) / 60 (sec % 3600) sec 3600 60 int second = (sec % 3600) % 60; second (sec % 3600) % 60 (sec % 3600) sec 3600 60 System.out.println(hours + ":" + minutes + ":" + second) System.out.println System.out System System.out hours + ":" + minutes + ":" + second ":" minutes hours + ":" + minutes + ":" + second hours ":" minutes ":" second {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        int sec = a.nextInt();
        if (sec >= 0 && sec < 86400){
            int hours = sec / 3600;
            int minutes = (sec % 3600) / 60;
            int second = (sec % 3600) % 60;

            System.out.println(hours + ":" + minutes + ":" + second);
        }else{
            System.out.println("No");
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        int sec = a.nextInt();
        if (sec >= 0 && sec < 86400){
            int hours = sec / 3600;
            int minutes = (sec % 3600) / 60;
            int second = (sec % 3600) % 60;

            System.out.println(hours + ":" + minutes + ":" + second);
        }else{
            System.out.println("No");
        }
    }
} Main

import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        int sec = a.nextInt();
        if (sec >= 0 && sec < 86400){
            int hours = sec / 3600;
            int minutes = (sec % 3600) / 60;
            int second = (sec % 3600) % 60;

            System.out.println(hours + ":" + minutes + ":" + second);
        }else{
            System.out.println("No");
        }
    }
}