import java.util.Scanner;

class Main{
    static int hour(int x){
	return (x /(60 * 60));
    }
    static int minu(int x){
	return((x % (60 * 60)) / 60);
    }
    static int sec(int x){
	return(x % 60);
    }
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	System.out.println(hour(x) + ":" + minu(x) + ":" + sec(x));
    }
    
} import java.util.Scanner; Scanner java.util class Main{
    static int hour(int x){
	return (x /(60 * 60));
    }
    static int minu(int x){
	return((x % (60 * 60)) / 60);
    }
    static int sec(int x){
	return(x % 60);
    }
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	System.out.println(hour(x) + ":" + minu(x) + ":" + sec(x));
    }
    
} Main static int hour(int x){
	return (x /(60 * 60));
    } hour {
	return (x /(60 * 60));
    } return (x /(60 * 60)); (x /(60 * 60)) x (60 * 60) 60 60 int x x static int minu(int x){
	return((x % (60 * 60)) / 60);
    } minu {
	return((x % (60 * 60)) / 60);
    } return((x % (60 * 60)) / 60); ((x % (60 * 60)) / 60) (x % (60 * 60)) x (60 * 60) 60 60 60 int x x static int sec(int x){
	return(x % 60);
    } sec {
	return(x % 60);
    } return(x % 60); (x % 60) x 60 int x x public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	System.out.println(hour(x) + ":" + minu(x) + ":" + sec(x));
    } main {
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	System.out.println(hour(x) + ":" + minu(x) + ":" + sec(x));
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int x = stdIn.nextInt(); x stdIn.nextInt() stdIn.nextInt stdIn System.out.println(hour(x) + ":" + minu(x) + ":" + sec(x)) System.out.println System.out System System.out hour(x) + ":" + minu(x) + ":" + sec(x) ":" minu(x) hour(x) + ":" + minu(x) + ":" + sec(x) hour(x) hour x ":" minu(x) minu x ":" sec(x) sec x String[] args args
import java.util.Scanner;

class Main{
    static int hour(int x){
	return (x /(60 * 60));
    }
    static int minu(int x){
	return((x % (60 * 60)) / 60);
    }
    static int sec(int x){
	return(x % 60);
    }
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	int x = stdIn.nextInt();
	System.out.println(hour(x) + ":" + minu(x) + ":" + sec(x));
    }
    
}