import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Clock{
	int h,m,s;
	void doit(int t){
		int tmp = t;
		s = tmp % 60;
		tmp /= 60;
		m = tmp % 60;
		tmp /= 60;
		h = tmp;
		System.out.println(h + ":" + m + ":" + s);
	}
}

class Main{
	public static void main (String[] args) throws java.lang.Exception{
		Scanner scan = new Scanner(System.in);
		int t = Integer.parseInt(scan.next());
		Clock c = new Clock();
		c.doit(t);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Clock{
	int h,m,s;
	void doit(int t){
		int tmp = t;
		s = tmp % 60;
		tmp /= 60;
		m = tmp % 60;
		tmp /= 60;
		h = tmp;
		System.out.println(h + ":" + m + ":" + s);
	}
} Clock int h h m m s; s void doit(int t){
		int tmp = t;
		s = tmp % 60;
		tmp /= 60;
		m = tmp % 60;
		tmp /= 60;
		h = tmp;
		System.out.println(h + ":" + m + ":" + s);
	} doit {
		int tmp = t;
		s = tmp % 60;
		tmp /= 60;
		m = tmp % 60;
		tmp /= 60;
		h = tmp;
		System.out.println(h + ":" + m + ":" + s);
	} int tmp = t; tmp t s = tmp % 60 s tmp % 60 tmp 60 tmp /= 60 tmp 60 m = tmp % 60 m tmp % 60 tmp 60 tmp /= 60 tmp 60 h = tmp h tmp System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s int t t class Main{
	public static void main (String[] args) throws java.lang.Exception{
		Scanner scan = new Scanner(System.in);
		int t = Integer.parseInt(scan.next());
		Clock c = new Clock();
		c.doit(t);
	}
} Main public static void main (String[] args) throws java.lang.Exception{
		Scanner scan = new Scanner(System.in);
		int t = Integer.parseInt(scan.next());
		Clock c = new Clock();
		c.doit(t);
	} main {
		Scanner scan = new Scanner(System.in);
		int t = Integer.parseInt(scan.next());
		Clock c = new Clock();
		c.doit(t);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int t = Integer.parseInt(scan.next()); t Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan Clock c = new Clock(); c new Clock() c.doit(t) c.doit c t String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Clock{
	int h,m,s;
	void doit(int t){
		int tmp = t;
		s = tmp % 60;
		tmp /= 60;
		m = tmp % 60;
		tmp /= 60;
		h = tmp;
		System.out.println(h + ":" + m + ":" + s);
	}
}

class Main{
	public static void main (String[] args) throws java.lang.Exception{
		Scanner scan = new Scanner(System.in);
		int t = Integer.parseInt(scan.next());
		Clock c = new Clock();
		c.doit(t);
	}
}