Let the two parts be and .
According to the given condition,
When
When ,
Hence, the required parts are 17 and 40 .