fork download
  1. x = int(input())
  2. y = int(input())
  3. z = int(input())
  4.  
  5. # Block-1 Start
  6. if x > 0 or y > 0 or z > 0:
  7. if (x > 0 and y > 0) or (y > 0 and z > 0) or (z > 0 and x > 0):
  8. if x > 0 and y > 0 and z > 0:
  9. print('P3')
  10. else:
  11. print('P2')
  12. else:
  13. print('P1')
  14. # Block-1 End
  15.  
  16. # Block-2 Start
  17. if x < 0 or y < 0 or z < 0:
  18. if (x < 0 and y < 0) or (y < 0 and z < 0) or (z < 0 and x < 0):
  19. if x < 0 and y < 0 and z < 0:
  20. print('N3')
  21. else:
  22. print('N2')
  23. else:
  24. print('N1')
  25. # Block-2 End
Success #stdin #stdout 0.03s 9900KB
stdin
1
0
1
stdout
P2