Graphs with no induced P 5 or P 5