Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. a, b = map(int, input().split())
  2. while(a<0 or b<0 or a>10**10 or b>10**10 ):
  3. a, b = map(int, input().split())
  4.  
  5. if (a==0 or b==0):
  6. ma=0
  7. print(ma)
  8. elif (a+b<3):
  9. ma=0
  10. print(ma)
  11. elif (a+b>=3) :
  12. ma=(a+b) // 3
  13. print(ma)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement