Problem 4. On each side of a cube, a natural number is written. At each vertex (corner) of the cube, the product of the three numbers written on the sides that form the vertex (corner) is written. The sum of the eight thus obtained products is 385. Determine the sum of the numbers written on the sides of the cube.