import java.util.Scanner;

public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int time = sc.nextInt();
        int hour = time / 3600;
        int minitue = (time%3600)/60;
        int second = time%60;
        System.out.println(hour+":"+minitue+":"+second);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int time = sc.nextInt();
        int hour = time / 3600;
        int minitue = (time%3600)/60;
        int second = time%60;
        System.out.println(hour+":"+minitue+":"+second);
    }
} Main public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int time = sc.nextInt();
        int hour = time / 3600;
        int minitue = (time%3600)/60;
        int second = time%60;
        System.out.println(hour+":"+minitue+":"+second);
    } main {
        Scanner sc = new Scanner(System.in);
        int time = sc.nextInt();
        int hour = time / 3600;
        int minitue = (time%3600)/60;
        int second = time%60;
        System.out.println(hour+":"+minitue+":"+second);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int time = sc.nextInt(); time sc.nextInt() sc.nextInt sc int hour = time / 3600; hour time / 3600 time 3600 int minitue = (time%3600)/60; minitue (time%3600)/60 (time%3600) time 3600 60 int second = time%60; second time%60 time 60 System.out.println(hour+":"+minitue+":"+second) System.out.println System.out System System.out hour+":"+minitue+":"+second ":" minitue hour+":"+minitue+":"+second hour ":" minitue ":" second String[] args args public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int time = sc.nextInt();
        int hour = time / 3600;
        int minitue = (time%3600)/60;
        int second = time%60;
        System.out.println(hour+":"+minitue+":"+second);
    }
} public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int time = sc.nextInt();
        int hour = time / 3600;
        int minitue = (time%3600)/60;
        int second = time%60;
        System.out.println(hour+":"+minitue+":"+second);
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args) throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int time = sc.nextInt();
        int hour = time / 3600;
        int minitue = (time%3600)/60;
        int second = time%60;
        System.out.println(hour+":"+minitue+":"+second);
    }
}