import java.util.*;

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

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