atcoder#ABC286B. [ABC286B] Cat
[ABC286B] Cat
Score : points
Problem Statement
You are given a string of length .
Find the string obtained by replacing all contiguous occurrences of na
in with nya
.
Constraints
- is an integer between and , inclusive.
- is a string of length consisting of lowercase English letters.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
4
naan
nyaan
Replacing all contiguous occurrences of na
in naan
with nya
results in the string nyaan
.
4
near
near
may not contain a contiguous na
.
8
national
nyationyal