daniil-vlasenko

7.41

Jul 20th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. x = int(input())
  2. i = x
  3. a = x
  4. while x != 0:
  5. x = int(input())
  6. if x > a:
  7. a = x
  8. elif x < i:
  9. i = x
  10. if i*x == abs(i)*abs(x):
  11. print('YES')
Advertisement
Add Comment
Please, Sign In to add comment