Single bit of memory
That part is called a flip flop.

You can get packages of one or several flip flops here.

If n is much more than 8 or so, you will want a memory chip which offers some address and data bus.