for i in [2, 0, 1]: for j in range(0,i+1): print('Y', end="") print('\nZ', end="")