Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = int(input())
- g = 9
- while True:
- if (a/g and b/g):
- a = a/g
- b = b/g
- elif:
- g = g-1
- a = a/g
- b = b/g
- else:
- breake
- print(a,b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement