Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x, y = list(map(int, input().split(' ')))
- k=x+y
- v=0
- z=1
- if x==y:
- pass
- elif x==1 and y==0:
- print('1:0')
- elif x==1:
- for j in range(1,y+1):
- print(str(1)+':'+str(j))
- elif x==0:
- i=0
- for j in range(1,y+1):
- print(str(0)+':'+str(j))
- elif y==0:
- for j in range(1,x+1):
- print(str(j)+':'+str(0))
- else:
- for i in range(1,x):
- print(str(i)+':'+str(0))
- if x<y:
- while z<=i:
- print(str(i)+':'+str(z))
- z+=1
- else:
- while z<=y:
- print(str(i)+':'+str(z))
- z+=1
- for j in range(z-1,y+1):
- print(str(i+1)+':'+str(j))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement