import java.util.Scanner;
import java.util.ArrayList;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int h = t/3600;
        int m = (t%3600)/60;
        int s = (t%3600)%60;
        System.out.println(h + ":" + m + ":" + s);
    }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int h = t/3600;
        int m = (t%3600)/60;
        int s = (t%3600)%60;
        System.out.println(h + ":" + m + ":" + s);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int h = t/3600;
        int m = (t%3600)/60;
        int s = (t%3600)%60;
        System.out.println(h + ":" + m + ":" + s);
    } main {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int h = t/3600;
        int m = (t%3600)/60;
        int s = (t%3600)%60;
        System.out.println(h + ":" + m + ":" + s);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int h = t/3600; h t/3600 t 3600 int m = (t%3600)/60; m (t%3600)/60 (t%3600) t 3600 60 int s = (t%3600)%60; s (t%3600)%60 (t%3600) t 3600 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) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int h = t/3600;
        int m = (t%3600)/60;
        int s = (t%3600)%60;
        System.out.println(h + ":" + m + ":" + s);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int h = t/3600;
        int m = (t%3600)/60;
        int s = (t%3600)%60;
        System.out.println(h + ":" + m + ":" + s);
    }
} Main
import java.util.Scanner;
import java.util.ArrayList;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int h = t/3600;
        int m = (t%3600)/60;
        int s = (t%3600)%60;
        System.out.println(h + ":" + m + ":" + s);
    }
}