fork download
  1. input()
  2. dane=[int(x) for x in input().split()]
  3. for x in dane:
  4. if x%2==0: print('P', end='')
  5. else: print('N', end='')
Success #stdin #stdout 0.02s 9296KB
stdin
4
1 2 3 4
stdout
NPNP