問題ABC286 B - Catお気持ちreplaceで置換してあげたら瞬殺!ソースコードN = int(input()) S = input() print(S.replace('na', 'nya'))