SHARE
TWEET

IKT2

a guest Feb 24th, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x = int(input())
  2. L = 0; M = 0
  3. while x > 0:
  4.     L = L + 1
  5.     if x % 8 != 0:
  6.         M = M + x % 8
  7.     x = x // 8
  8. print(L, M)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top