import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int S = 0; // ??\?????????????§?
		int h = 0; // ???
		int m = 0; // ???
		int s = 0; // ?§?

		S = sc.nextInt();

		h = S / 3600;
		m = ( S % 3600 ) / 60;
		s = ( S % 3600 ) % 60;

		System.out.println( h + ":" + m + ":" + s  );
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int S = 0; // ??\?????????????§?
		int h = 0; // ???
		int m = 0; // ???
		int s = 0; // ?§?

		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) {
		Scanner sc = new Scanner(System.in);

		int S = 0; // ??\?????????????§?
		int h = 0; // ???
		int m = 0; // ???
		int s = 0; // ?§?

		S = sc.nextInt();

		h = S / 3600;
		m = ( S % 3600 ) / 60;
		s = ( S % 3600 ) % 60;

		System.out.println( h + ":" + m + ":" + s  );
	} main {
		Scanner sc = new Scanner(System.in);

		int S = 0; // ??\?????????????§?
		int h = 0; // ???
		int m = 0; // ???
		int s = 0; // ?§?

		S = sc.nextInt();

		h = S / 3600;
		m = ( S % 3600 ) / 60;
		s = ( S % 3600 ) % 60;

		System.out.println( h + ":" + m + ":" + s  );
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = 0; S 0 int h = 0; h 0 int m = 0; m 0 int s = 0; s 0 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
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int S = 0; // ??\?????????????§?
		int h = 0; // ???
		int m = 0; // ???
		int s = 0; // ?§?

		S = sc.nextInt();

		h = S / 3600;
		m = ( S % 3600 ) / 60;
		s = ( S % 3600 ) % 60;

		System.out.println( h + ":" + m + ":" + s  );
	}
}