Complex sentence: The first Japanese attack on July 29 was repelled, but on July 31 the Soviet troops had to retreat.
Split into simpler sentences: The first Japanese attack on July 29 was repelled. But on July 31, the Soviet troops had to retreat.