codeforces#P1663F. In Every Generation...
In Every Generation...
Description
A string $s$ ($3 \le |s| \le 7$) consisting of lowercase English letters.
A single string. If there is no answer, print "none" (without the quotes).
Input
A string $s$ ($3 \le |s| \le 7$) consisting of lowercase English letters.
Output
A single string. If there is no answer, print "none" (without the quotes).
Samples
tourist
ooggqjx