Checking the correctness of wagon and container numbers