import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        int h = num / 3600, m, s;

        num %= 3600;
        m = num/60;
        num %= 60;
        s = num;

        System.out.println(h + ":" + m + ":" + s);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        int h = num / 3600, m, s;

        num %= 3600;
        m = num/60;
        num %= 60;
        s = num;

        System.out.println(h + ":" + m + ":" + s);
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        int h = num / 3600, m, s;

        num %= 3600;
        m = num/60;
        num %= 60;
        s = num;

        System.out.println(h + ":" + m + ":" + s);
    } main {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        int h = num / 3600, m, s;

        num %= 3600;
        m = num/60;
        num %= 60;
        s = num;

        System.out.println(h + ":" + m + ":" + s);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan int h = num / 3600 h num / 3600 num 3600 m m s; s num %= 3600 num 3600 m = num/60 m num/60 num 60 num %= 60 num 60 s = num s num 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 scan = new Scanner(System.in);
        int num = scan.nextInt();
        int h = num / 3600, m, s;

        num %= 3600;
        m = num/60;
        num %= 60;
        s = num;

        System.out.println(h + ":" + m + ":" + s);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        int h = num / 3600, m, s;

        num %= 3600;
        m = num/60;
        num %= 60;
        s = num;

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

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        int h = num / 3600, m, s;

        num %= 3600;
        m = num/60;
        num %= 60;
        s = num;

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