import java.util.*;

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

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