Technical improvement of a factory enabled it to produce 165 parts more in February than in January. In the two-month period, the factory produced 1315 parts altogether. How many parts were produced in January and how many parts were produced in February?