practivceAlgorithm/백준

[백준][Python] 14405 피카츄

findTheValue 2021. 9. 7. 09:15

pkai 만 조심하면된다.

 

print('YES' if not input().replace('pi',' ').replace('ka',' ').replace('chu',' ').strip() else 'NO')