Specially shaped nuts or heads of bolts or screws for rotations by a tool