A bolt head has to be made at the end of a rod of diameter $d=12$ mm by localized forging (upsetting) operation. The length of the unsupported portion of the rod is $40$ mm. To avoid buckling of the rod, a closed forging operation has to be performed with a maximum die diameter of _______ mm.