Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. a,b,c = map(int,input().split())
  2. d,e,f = map(int,input().split())
  3. x = d - a
  4. y = e - b
  5. z = c - f
  6. q = abs(x + y)
  7. if a<d and b<e:
  8. if (x+y)<z:
  9. print('There are no miracles in life')
  10. else:
  11. print('It is a kind of magic')
  12. elif a<d and b>=e:
  13. if x>z:
  14. print('There are no miracles in life')
  15. else:
  16. print('It is a kind of magic')
  17. elif b<e and a>=d:
  18. if y>z:
  19. print('There are no miracles in life')
  20. else:
  21. print('It is a kind of magic')
  22. else:
  23. if z < 0:
  24. if (q+z)<0:
  25. print('There are no miracles in life')
  26. else:
  27. print('It is a kind of magic')
  28. else:
  29. print('It is a kind of magic')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement