Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a, b = map(int, input().split())
- while(a<0 or b<0 or a>10**10 or b>10**10 ):
- a, b = map(int, input().split())
- if (a==0 or b==0):
- ma=0
- print(ma)
- elif (a+b<3):
- ma=0
- print(ma)
- elif (a+b>=3) :
- ma=(a+b) // 3
- print(ma)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement