Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = int(input())
- L = 0; M = 0
- while x > 0:
- L = L + 1
- if x % 8 != 0:
- M = M + x % 8
- x = x // 8
- print(L, M)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement