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