How can I identify the timber parts?

We have prepared the timber pack with the timber cut to the right length. Every piece should be identified by its actual length and dimensions. Due to the variations in the timber lengths caused by the different timber dimensions we have defined these lengths within tolerance.