Problem 5. On each of the six sides of a cube, a natural number is written. At each vertex, we write the product of the three numbers written on the sides that have the corresponding vertex in common. If the sum of the numbers written at the vertices is 2006, calculate the sum of the numbers written on the sides.