IntermediateRating 1400
k-th Happy String
A happy string uses only a, b and c, and no two neighbouring letters are the same. List all happy strings of length n in alphabetical order and print the k-th, or NONE if there are fewer than k.
Input
Two integers n (1 ≤ n ≤ 10) and k.
Output
A string or NONE.
Sample 1
Input
1 3
Output
c
Sample 2
Input
1 4
Output
NONE
Output appears here