Solution to the avito competition