Advertisement
HuanMatus

Untitled

Mar 14th, 2022
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. N = int(input())
  2. A = 0; B = 0; C = 0
  3. while N > 0:
  4. if C % 2 == 0:
  5. A += N % 8
  6. else:
  7. B += N % 8
  8. N = N // 8
  9. C += 1
  10. print(A, B)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement