import java.util.Scanner;

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

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