However, to execute this perfectly, all the nails have to be 'perfectly' straight; the embedded one has to be 'perfectly' perpendicular to the base (assuming the base is 'perfectly' level to the surface upon which it rests), and its top 'perfectly' flat (no embossed imperfections) .
(it's a rare occasion when an imperfection (a burr,an embossed blemish,a defect in relief, etc.) can actually be an aid to the stacking, wherein the defect in relief can restrain the nail from rolling off the top, if it had that tendency to do so)
If any ~ or all ~ the nails are even slightly bent, the odds of success are extremely slim, although I'm sure it can be done if you have a great deal of time on your hands . . . (and that much more patience!) .
I'm sure perserverance would eventually win out .