u = 5 n = 0 while (u<=34.99): u = 0.8*u+7 n += 1 print(n)