#P1586. 枚举子集

枚举子集

Description

Input Format

Output Format

3
NNN
NNY
NYN
NYY
YNN
YNY
YYN
YYY

Hint

Source

贪心