Classical transitions with the topological number changing in the early Universe